Deleted Added
full compact
x509v3.h (59191) x509v3.h (68651)
1/* x509v3.h */
2/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
3 * project 1999.
4 */
5/* ====================================================================
6 * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 44 unchanged lines hidden (view full) ---

53 * This product includes cryptographic software written by Eric Young
54 * (eay@cryptsoft.com). This product includes software written by Tim
55 * Hudson (tjh@cryptsoft.com).
56 *
57 */
58#ifndef HEADER_X509V3_H
59#define HEADER_X509V3_H
60
1/* x509v3.h */
2/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
3 * project 1999.
4 */
5/* ====================================================================
6 * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 44 unchanged lines hidden (view full) ---

53 * This product includes cryptographic software written by Eric Young
54 * (eay@cryptsoft.com). This product includes software written by Tim
55 * Hudson (tjh@cryptsoft.com).
56 *
57 */
58#ifndef HEADER_X509V3_H
59#define HEADER_X509V3_H
60
61#ifdef __cplusplus
62extern "C" {
63#endif
64
65#include <openssl/bio.h>
66#include <openssl/x509.h>
67#include <openssl/conf.h>
68
61#include <openssl/bio.h>
62#include <openssl/x509.h>
63#include <openssl/conf.h>
64
65#ifdef __cplusplus
66extern "C" {
67#endif
68
69/* Forward reference */
70struct v3_ext_method;
71struct v3_ext_ctx;
72
73/* Useful typedefs */
74
75typedef void * (*X509V3_EXT_NEW)(void);
76typedef void (*X509V3_EXT_FREE)(void *);

--- 49 unchanged lines hidden (view full) ---

126X509V3_CONF_METHOD *db_meth;
127void *db;
128/* Maybe more here */
129};
130
131typedef struct v3_ext_method X509V3_EXT_METHOD;
132typedef struct v3_ext_ctx X509V3_CTX;
133
69/* Forward reference */
70struct v3_ext_method;
71struct v3_ext_ctx;
72
73/* Useful typedefs */
74
75typedef void * (*X509V3_EXT_NEW)(void);
76typedef void (*X509V3_EXT_FREE)(void *);

--- 49 unchanged lines hidden (view full) ---

126X509V3_CONF_METHOD *db_meth;
127void *db;
128/* Maybe more here */
129};
130
131typedef struct v3_ext_method X509V3_EXT_METHOD;
132typedef struct v3_ext_ctx X509V3_CTX;
133
134DECLARE_STACK_OF(X509V3_EXT_METHOD)
135
134/* ext_flags values */
135#define X509V3_EXT_DYNAMIC 0x1
136#define X509V3_EXT_CTX_DEP 0x2
137#define X509V3_EXT_MULTILINE 0x4
138
139typedef BIT_STRING_BITNAME ENUMERATED_NAMES;
140
141typedef struct BASIC_CONSTRAINTS_st {

--- 80 unchanged lines hidden (view full) ---

222
223typedef struct SXNET_st {
224 ASN1_INTEGER *version;
225 STACK_OF(SXNETID) *ids;
226} SXNET;
227
228typedef struct NOTICEREF_st {
229 ASN1_STRING *organization;
136/* ext_flags values */
137#define X509V3_EXT_DYNAMIC 0x1
138#define X509V3_EXT_CTX_DEP 0x2
139#define X509V3_EXT_MULTILINE 0x4
140
141typedef BIT_STRING_BITNAME ENUMERATED_NAMES;
142
143typedef struct BASIC_CONSTRAINTS_st {

--- 80 unchanged lines hidden (view full) ---

224
225typedef struct SXNET_st {
226 ASN1_INTEGER *version;
227 STACK_OF(SXNETID) *ids;
228} SXNET;
229
230typedef struct NOTICEREF_st {
231 ASN1_STRING *organization;
230 STACK *noticenos;
232 STACK_OF(ASN1_INTEGER) *noticenos;
231} NOTICEREF;
232
233typedef struct USERNOTICE_st {
234 NOTICEREF *noticeref;
235 ASN1_STRING *exptext;
236} USERNOTICE;
237
238typedef struct POLICYQUALINFO_st {

--- 88 unchanged lines hidden (view full) ---

327
328#define X509_PURPOSE_DYNAMIC 0x1
329#define X509_PURPOSE_DYNAMIC_NAME 0x2
330
331typedef struct x509_purpose_st {
332 int purpose;
333 int trust; /* Default trust ID */
334 int flags;
233} NOTICEREF;
234
235typedef struct USERNOTICE_st {
236 NOTICEREF *noticeref;
237 ASN1_STRING *exptext;
238} USERNOTICE;
239
240typedef struct POLICYQUALINFO_st {

--- 88 unchanged lines hidden (view full) ---

329
330#define X509_PURPOSE_DYNAMIC 0x1
331#define X509_PURPOSE_DYNAMIC_NAME 0x2
332
333typedef struct x509_purpose_st {
334 int purpose;
335 int trust; /* Default trust ID */
336 int flags;
335 int (*check_purpose)(struct x509_purpose_st *, X509 *, int);
337 int (*check_purpose)(const struct x509_purpose_st *,
338 const X509 *, int);
336 char *name;
337 char *sname;
338 void *usr_data;
339} X509_PURPOSE;
340
341#define X509_PURPOSE_SSL_CLIENT 1
342#define X509_PURPOSE_SSL_SERVER 2
343#define X509_PURPOSE_NS_SSL_SERVER 3

--- 180 unchanged lines hidden (view full) ---

524int name_cmp(const char *name, const char *cmp);
525
526void X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent,
527 int ml);
528int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, int flag, int indent);
529int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent);
530
531int X509_check_purpose(X509 *x, int id, int ca);
339 char *name;
340 char *sname;
341 void *usr_data;
342} X509_PURPOSE;
343
344#define X509_PURPOSE_SSL_CLIENT 1
345#define X509_PURPOSE_SSL_SERVER 2
346#define X509_PURPOSE_NS_SSL_SERVER 3

--- 180 unchanged lines hidden (view full) ---

527int name_cmp(const char *name, const char *cmp);
528
529void X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent,
530 int ml);
531int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, int flag, int indent);
532int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent);
533
534int X509_check_purpose(X509 *x, int id, int ca);
535int X509_check_issued(X509 *issuer, X509 *subject);
532int X509_PURPOSE_get_count(void);
533X509_PURPOSE * X509_PURPOSE_get0(int idx);
534int X509_PURPOSE_get_by_sname(char *sname);
535int X509_PURPOSE_get_by_id(int id);
536int X509_PURPOSE_add(int id, int trust, int flags,
536int X509_PURPOSE_get_count(void);
537X509_PURPOSE * X509_PURPOSE_get0(int idx);
538int X509_PURPOSE_get_by_sname(char *sname);
539int X509_PURPOSE_get_by_id(int id);
540int X509_PURPOSE_add(int id, int trust, int flags,
537 int (*ck)(X509_PURPOSE *, X509 *, int),
541 int (*ck)(const X509_PURPOSE *, const X509 *, int),
538 char *name, char *sname, void *arg);
539char *X509_PURPOSE_get0_name(X509_PURPOSE *xp);
540char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp);
541int X509_PURPOSE_get_trust(X509_PURPOSE *xp);
542void X509_PURPOSE_cleanup(void);
543int X509_PURPOSE_get_id(X509_PURPOSE *);
544
542 char *name, char *sname, void *arg);
543char *X509_PURPOSE_get0_name(X509_PURPOSE *xp);
544char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp);
545int X509_PURPOSE_get_trust(X509_PURPOSE *xp);
546void X509_PURPOSE_cleanup(void);
547int X509_PURPOSE_get_id(X509_PURPOSE *);
548
549STACK *X509_get1_email(X509 *x);
550STACK *X509_REQ_get1_email(X509_REQ *x);
551void X509_email_free(STACK *sk);
552
553
545/* BEGIN ERROR CODES */
546/* The following lines are auto generated by the script mkerr.pl. Any changes
547 * made after this point may be overwritten when the script is next run.
548 */
549
550/* Error codes for the X509V3 functions. */
551
552/* Function codes. */

--- 92 unchanged lines hidden ---
554/* BEGIN ERROR CODES */
555/* The following lines are auto generated by the script mkerr.pl. Any changes
556 * made after this point may be overwritten when the script is next run.
557 */
558
559/* Error codes for the X509V3 functions. */
560
561/* Function codes. */

--- 92 unchanged lines hidden ---