summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/x509v3.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509v3/x509v3.h')
-rw-r--r--src/lib/libcrypto/x509v3/x509v3.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509v3/x509v3.h b/src/lib/libcrypto/x509v3/x509v3.h
index 96ceb7c4fb..0453b12d63 100644
--- a/src/lib/libcrypto/x509v3/x509v3.h
+++ b/src/lib/libcrypto/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
62extern "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
66extern "C" {
67#endif
68
69/* Forward reference */ 69/* Forward reference */
70struct v3_ext_method; 70struct v3_ext_method;
71struct v3_ext_ctx; 71struct v3_ext_ctx;
@@ -131,6 +131,8 @@ void *db;
131typedef struct v3_ext_method X509V3_EXT_METHOD; 131typedef struct v3_ext_method X509V3_EXT_METHOD;
132typedef struct v3_ext_ctx X509V3_CTX; 132typedef struct v3_ext_ctx X509V3_CTX;
133 133
134DECLARE_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
228typedef struct NOTICEREF_st { 230typedef 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
233typedef struct USERNOTICE_st { 235typedef 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);
529int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); 532int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent);
530 533
531int X509_check_purpose(X509 *x, int id, int ca); 534int X509_check_purpose(X509 *x, int id, int ca);
535int X509_check_issued(X509 *issuer, X509 *subject);
532int X509_PURPOSE_get_count(void); 536int X509_PURPOSE_get_count(void);
533X509_PURPOSE * X509_PURPOSE_get0(int idx); 537X509_PURPOSE * X509_PURPOSE_get0(int idx);
534int X509_PURPOSE_get_by_sname(char *sname); 538int X509_PURPOSE_get_by_sname(char *sname);
535int X509_PURPOSE_get_by_id(int id); 539int X509_PURPOSE_get_by_id(int id);
536int X509_PURPOSE_add(int id, int trust, int flags, 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); 542 char *name, char *sname, void *arg);
539char *X509_PURPOSE_get0_name(X509_PURPOSE *xp); 543char *X509_PURPOSE_get0_name(X509_PURPOSE *xp);
540char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp); 544char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp);
@@ -542,6 +546,11 @@ int X509_PURPOSE_get_trust(X509_PURPOSE *xp);
542void X509_PURPOSE_cleanup(void); 546void X509_PURPOSE_cleanup(void);
543int X509_PURPOSE_get_id(X509_PURPOSE *); 547int X509_PURPOSE_get_id(X509_PURPOSE *);
544 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 */ 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.