diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/x509v3.h')
-rw-r--r-- | src/lib/libcrypto/x509v3/x509v3.h | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/src/lib/libcrypto/x509v3/x509v3.h b/src/lib/libcrypto/x509v3/x509v3.h index 3efb4ef25d..429239424c 100644 --- a/src/lib/libcrypto/x509v3/x509v3.h +++ b/src/lib/libcrypto/x509v3/x509v3.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509v3.h,v 1.24 2018/05/13 15:03:01 tb Exp $ */ | 1 | /* $OpenBSD: x509v3.h,v 1.25 2018/05/13 17:49:03 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -121,9 +121,9 @@ void *usr_data; /* Any extension specific data */ | |||
121 | }; | 121 | }; |
122 | 122 | ||
123 | typedef struct X509V3_CONF_METHOD_st { | 123 | typedef struct X509V3_CONF_METHOD_st { |
124 | char * (*get_string)(void *db, char *section, char *value); | 124 | char *(*get_string)(void *db, const char *section, const char *value); |
125 | STACK_OF(CONF_VALUE) * (*get_section)(void *db, char *section); | 125 | STACK_OF(CONF_VALUE) *(*get_section)(void *db, const char *section); |
126 | void (*free_string)(void *db, char * string); | 126 | void (*free_string)(void *db, char *string); |
127 | void (*free_section)(void *db, STACK_OF(CONF_VALUE) *section); | 127 | void (*free_section)(void *db, STACK_OF(CONF_VALUE) *section); |
128 | } X509V3_CONF_METHOD; | 128 | } X509V3_CONF_METHOD; |
129 | 129 | ||
@@ -696,23 +696,29 @@ GENERAL_NAME *v2i_GENERAL_NAME_ex(GENERAL_NAME *out, | |||
696 | X509V3_CTX *ctx, CONF_VALUE *cnf, int is_nc); | 696 | X509V3_CTX *ctx, CONF_VALUE *cnf, int is_nc); |
697 | void X509V3_conf_free(CONF_VALUE *val); | 697 | void X509V3_conf_free(CONF_VALUE *val); |
698 | 698 | ||
699 | X509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid, char *value); | 699 | X509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid, |
700 | X509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, char *name, char *value); | 700 | const char *value); |
701 | int X509V3_EXT_add_nconf_sk(CONF *conf, X509V3_CTX *ctx, char *section, STACK_OF(X509_EXTENSION) **sk); | 701 | X509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, const char *name, |
702 | int X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, X509 *cert); | 702 | const char *value); |
703 | int X509V3_EXT_REQ_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, X509_REQ *req); | 703 | int X509V3_EXT_add_nconf_sk(CONF *conf, X509V3_CTX *ctx, const char *section, |
704 | int X509V3_EXT_CRL_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, X509_CRL *crl); | 704 | STACK_OF(X509_EXTENSION) **sk); |
705 | int X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section, | ||
706 | X509 *cert); | ||
707 | int X509V3_EXT_REQ_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section, | ||
708 | X509_REQ *req); | ||
709 | int X509V3_EXT_CRL_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section, | ||
710 | X509_CRL *crl); | ||
705 | 711 | ||
706 | X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, | 712 | X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, |
707 | int ext_nid, char *value); | 713 | int ext_nid, const char *value); |
708 | X509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, | 714 | X509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, |
709 | char *name, char *value); | 715 | const char *name, const char *value); |
710 | int X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, | 716 | int X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, |
711 | char *section, X509 *cert); | 717 | const char *section, X509 *cert); |
712 | int X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, | 718 | int X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, |
713 | char *section, X509_REQ *req); | 719 | const char *section, X509_REQ *req); |
714 | int X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, | 720 | int X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, |
715 | char *section, X509_CRL *crl); | 721 | const char *section, X509_CRL *crl); |
716 | 722 | ||
717 | int X509V3_add_value_bool_nf(char *name, int asn1_bool, | 723 | int X509V3_add_value_bool_nf(char *name, int asn1_bool, |
718 | STACK_OF(CONF_VALUE) **extlist); | 724 | STACK_OF(CONF_VALUE) **extlist); |