diff options
Diffstat (limited to 'src/lib/libssl/src/crypto/x509v3/x509v3.h')
-rw-r--r-- | src/lib/libssl/src/crypto/x509v3/x509v3.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/lib/libssl/src/crypto/x509v3/x509v3.h b/src/lib/libssl/src/crypto/x509v3/x509v3.h index 96ceb7c4fb..0453b12d63 100644 --- a/src/lib/libssl/src/crypto/x509v3/x509v3.h +++ b/src/lib/libssl/src/crypto/x509v3/x509v3.h | |||
@@ -58,14 +58,14 @@ | |||
58 | #ifndef HEADER_X509V3_H | 58 | #ifndef HEADER_X509V3_H |
59 | #define HEADER_X509V3_H | 59 | #define HEADER_X509V3_H |
60 | 60 | ||
61 | #ifdef __cplusplus | ||
62 | extern "C" { | ||
63 | #endif | ||
64 | |||
65 | #include <openssl/bio.h> | 61 | #include <openssl/bio.h> |
66 | #include <openssl/x509.h> | 62 | #include <openssl/x509.h> |
67 | #include <openssl/conf.h> | 63 | #include <openssl/conf.h> |
68 | 64 | ||
65 | #ifdef __cplusplus | ||
66 | extern "C" { | ||
67 | #endif | ||
68 | |||
69 | /* Forward reference */ | 69 | /* Forward reference */ |
70 | struct v3_ext_method; | 70 | struct v3_ext_method; |
71 | struct v3_ext_ctx; | 71 | struct v3_ext_ctx; |
@@ -131,6 +131,8 @@ void *db; | |||
131 | typedef struct v3_ext_method X509V3_EXT_METHOD; | 131 | typedef struct v3_ext_method X509V3_EXT_METHOD; |
132 | typedef struct v3_ext_ctx X509V3_CTX; | 132 | typedef struct v3_ext_ctx X509V3_CTX; |
133 | 133 | ||
134 | DECLARE_STACK_OF(X509V3_EXT_METHOD) | ||
135 | |||
134 | /* ext_flags values */ | 136 | /* ext_flags values */ |
135 | #define X509V3_EXT_DYNAMIC 0x1 | 137 | #define X509V3_EXT_DYNAMIC 0x1 |
136 | #define X509V3_EXT_CTX_DEP 0x2 | 138 | #define X509V3_EXT_CTX_DEP 0x2 |
@@ -227,7 +229,7 @@ typedef struct SXNET_st { | |||
227 | 229 | ||
228 | typedef struct NOTICEREF_st { | 230 | typedef struct NOTICEREF_st { |
229 | ASN1_STRING *organization; | 231 | ASN1_STRING *organization; |
230 | STACK *noticenos; | 232 | STACK_OF(ASN1_INTEGER) *noticenos; |
231 | } NOTICEREF; | 233 | } NOTICEREF; |
232 | 234 | ||
233 | typedef struct USERNOTICE_st { | 235 | typedef struct USERNOTICE_st { |
@@ -332,7 +334,8 @@ typedef struct x509_purpose_st { | |||
332 | int purpose; | 334 | int purpose; |
333 | int trust; /* Default trust ID */ | 335 | int trust; /* Default trust ID */ |
334 | int flags; | 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; | 339 | char *name; |
337 | char *sname; | 340 | char *sname; |
338 | void *usr_data; | 341 | void *usr_data; |
@@ -529,12 +532,13 @@ int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, int flag, int indent); | |||
529 | int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); | 532 | int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); |
530 | 533 | ||
531 | int X509_check_purpose(X509 *x, int id, int ca); | 534 | int X509_check_purpose(X509 *x, int id, int ca); |
535 | int X509_check_issued(X509 *issuer, X509 *subject); | ||
532 | int X509_PURPOSE_get_count(void); | 536 | int X509_PURPOSE_get_count(void); |
533 | X509_PURPOSE * X509_PURPOSE_get0(int idx); | 537 | X509_PURPOSE * X509_PURPOSE_get0(int idx); |
534 | int X509_PURPOSE_get_by_sname(char *sname); | 538 | int X509_PURPOSE_get_by_sname(char *sname); |
535 | int X509_PURPOSE_get_by_id(int id); | 539 | int X509_PURPOSE_get_by_id(int id); |
536 | int X509_PURPOSE_add(int id, int trust, int flags, | 540 | int 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); | 542 | char *name, char *sname, void *arg); |
539 | char *X509_PURPOSE_get0_name(X509_PURPOSE *xp); | 543 | char *X509_PURPOSE_get0_name(X509_PURPOSE *xp); |
540 | char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp); | 544 | char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp); |
@@ -542,6 +546,11 @@ int X509_PURPOSE_get_trust(X509_PURPOSE *xp); | |||
542 | void X509_PURPOSE_cleanup(void); | 546 | void X509_PURPOSE_cleanup(void); |
543 | int X509_PURPOSE_get_id(X509_PURPOSE *); | 547 | int X509_PURPOSE_get_id(X509_PURPOSE *); |
544 | 548 | ||
549 | STACK *X509_get1_email(X509 *x); | ||
550 | STACK *X509_REQ_get1_email(X509_REQ *x); | ||
551 | void X509_email_free(STACK *sk); | ||
552 | |||
553 | |||
545 | /* BEGIN ERROR CODES */ | 554 | /* BEGIN ERROR CODES */ |
546 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 555 | /* 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. | 556 | * made after this point may be overwritten when the script is next run. |