Home
last modified time | relevance | path

Searched refs:X509_EXTENSION (Results 1 – 25 of 64) sorted by relevance

123

/freebsd/crypto/openssl/crypto/x509/
H A Dx509_v3.c20 int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x) in X509v3_get_ext_count()
30 int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, int nid, in X509v3_get_ext_by_NID()
41 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, in X509v3_get_ext_by_OBJ()
45 X509_EXTENSION *ex; in X509v3_get_ext_by_OBJ()
61 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical()
65 X509_EXTENSION *ex; in X509v3_get_ext_by_critical()
81 X509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc) in X509v3_get_ext()
89 X509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc) in X509v3_delete_ext()
91 X509_EXTENSION *ret; in X509v3_delete_ext()
99 STACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x, in STACK_OF() argument
[all …]
H A Dx_exten.c16 ASN1_SEQUENCE(X509_EXTENSION) = {
17 ASN1_SIMPLE(X509_EXTENSION, object, ASN1_OBJECT),
18 ASN1_OPT(X509_EXTENSION, critical, ASN1_BOOLEAN),
19 ASN1_EMBED(X509_EXTENSION, value, ASN1_OCTET_STRING)
20 } ASN1_SEQUENCE_END(X509_EXTENSION)
23 ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, Extension, X509_EXTENSION)
26 IMPLEMENT_ASN1_FUNCTIONS(X509_EXTENSION)
28 IMPLEMENT_ASN1_DUP_FUNCTION(X509_EXTENSION)
H A Dv3_conf.c22 static X509_EXTENSION *do_ext_nconf(CONF *conf, X509V3_CTX *ctx, int ext_nid,
24 static X509_EXTENSION *v3_generic_extension(const char *ext, const char *value,
29 static X509_EXTENSION *do_ext_i2d(const X509V3_EXT_METHOD *method,
34 static X509_EXTENSION *X509V3_EXT_nconf_int(CONF *conf, X509V3_CTX *ctx, in X509V3_EXT_nconf_int()
40 X509_EXTENSION *ret; in X509V3_EXT_nconf_int()
58 X509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, const char *name, in X509V3_EXT_nconf()
64 X509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid, in X509V3_EXT_nconf_nid()
79 static X509_EXTENSION *do_ext_nconf(CONF *conf, X509V3_CTX *ctx, int ext_nid, in do_ext_nconf()
83 X509_EXTENSION *ext; in do_ext_nconf()
138 static X509_EXTENSION *do_ext_i2d(const X509V3_EXT_METHOD *method, in do_ext_i2d()
[all …]
H A Dx509_ext.c40 X509_EXTENSION *X509_CRL_get_ext(const X509_CRL *x, int loc) in X509_CRL_get_ext()
45 X509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc) in X509_CRL_delete_ext()
61 int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc) in X509_CRL_add_ext()
87 X509_EXTENSION *X509_get_ext(const X509 *x, int loc) in X509_get_ext()
92 X509_EXTENSION *X509_delete_ext(X509 *x, int loc) in X509_delete_ext()
97 int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc) in X509_add_ext()
135 X509_EXTENSION *X509_REVOKED_get_ext(const X509_REVOKED *x, int loc) in X509_REVOKED_get_ext()
140 X509_EXTENSION *X509_REVOKED_delete_ext(X509_REVOKED *x, int loc) in X509_REVOKED_delete_ext()
145 int X509_REVOKED_add_ext(X509_REVOKED *x, X509_EXTENSION *ex, int loc) in X509_REVOKED_add_ext()
H A Dv3_lib.c70 const X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext) in X509V3_EXT_get()
129 void *X509V3_EXT_d2i(X509_EXTENSION *ext) in X509V3_EXT_d2i()
162 void *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit, in X509V3_get_d2i()
166 X509_EXTENSION *ex, *found_ex = NULL; in X509V3_get_d2i()
218 int X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value, in X509V3_add1_i2d()
222 X509_EXTENSION *ext = NULL, *extmp; in X509V3_add1_i2d()
223 STACK_OF(X509_EXTENSION) *ret = NULL; in X509V3_add1_i2d()
H A Dv3_prn.c70 int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, in X509V3_EXT_print()
140 const STACK_OF(X509_EXTENSION) *exts, in X509V3_extensions_print()
155 X509_EXTENSION *ex; in X509V3_extensions_print()
205 int X509V3_EXT_print_fp(FILE *fp, X509_EXTENSION *ext, int flag, int indent) in X509V3_EXT_print_fp()
H A Dx509_req.c139 STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req) in STACK_OF() argument
161 return (STACK_OF(X509_EXTENSION) *) in STACK_OF()
171 const STACK_OF(X509_EXTENSION) *exts, int nid) in X509_REQ_add_extensions_nid()
188 int X509_REQ_add_extensions(X509_REQ *req, const STACK_OF(X509_EXTENSION) *exts) in X509_REQ_add_extensions()
H A Dx_crl.c25 ASN1_SEQUENCE_OF_OPT(X509_REVOKED,extensions, X509_EXTENSION)
74 ASN1_EXP_SEQUENCE_OF_OPT(X509_CRL_INFO, extensions, X509_EXTENSION, 0)
94 STACK_OF(X509_EXTENSION) *exts;
96 X509_EXTENSION *ext;
160 STACK_OF(X509_EXTENSION) *exts; in crl_cb()
161 X509_EXTENSION *ext; in crl_cb()
/freebsd/crypto/openssl/crypto/ocsp/
H A Docsp_ext.c47 X509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc) in OCSP_REQUEST_get_ext()
52 X509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc) in OCSP_REQUEST_delete_ext()
69 int OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc) in OCSP_REQUEST_add_ext()
99 X509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc) in OCSP_ONEREQ_get_ext()
104 X509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc) in OCSP_ONEREQ_delete_ext()
121 int OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc) in OCSP_ONEREQ_add_ext()
153 X509_EXTENSION *OCSP_BASICRESP_get_ext(OCSP_BASICRESP *x, int loc) in OCSP_BASICRESP_get_ext()
158 X509_EXTENSION *OCSP_BASICRESP_delete_ext(OCSP_BASICRESP *x, int loc) in OCSP_BASICRESP_delete_ext()
177 int OCSP_BASICRESP_add_ext(OCSP_BASICRESP *x, X509_EXTENSION *ex, int loc) in OCSP_BASICRESP_add_ext()
207 X509_EXTENSION *OCSP_SINGLERESP_get_ext(OCSP_SINGLERESP *x, int loc) in OCSP_SINGLERESP_get_ext()
[all …]
H A Docsp_local.h31 STACK_OF(X509_EXTENSION) *singleRequestExtensions;
44 STACK_OF(X509_EXTENSION) *requestExtensions;
147 STACK_OF(X509_EXTENSION) *singleExtensions;
162 STACK_OF(X509_EXTENSION) *responseExtensions;
H A Docsp_asn.c34 ASN1_EXP_SEQUENCE_OF_OPT(OCSP_ONEREQ, singleRequestExtensions, X509_EXTENSION, 0)
43 ASN1_EXP_SEQUENCE_OF_OPT(OCSP_REQINFO, requestExtensions, X509_EXTENSION, 2)
98 ASN1_EXP_SEQUENCE_OF_OPT(OCSP_SINGLERESP, singleExtensions, X509_EXTENSION, 1)
108 ASN1_EXP_SEQUENCE_OF_OPT(OCSP_RESPDATA, responseExtensions, X509_EXTENSION, 1)
/freebsd/crypto/openssl/doc/man3/
H A DX509v3_get_ext_by_NID.pod20 int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x);
21 X509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc);
23 int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x,
25 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x,
27 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x,
29 X509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc);
30 STACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x,
31 X509_EXTENSION *ex, int loc);
34 X509_EXTENSION *X509_get_ext(const X509 *x, int loc);
38 X509_EXTENSION *X509_delete_ext(X509 *x, int loc);
[all …]
H A DX509_EXTENSION_set_object.pod13 int X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj);
14 int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit);
15 int X509_EXTENSION_set_data(X509_EXTENSION *ex, ASN1_OCTET_STRING *data);
17 X509_EXTENSION *X509_EXTENSION_create_by_NID(X509_EXTENSION **ex,
20 X509_EXTENSION *X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex,
24 ASN1_OBJECT *X509_EXTENSION_get_object(X509_EXTENSION *ex);
25 int X509_EXTENSION_get_critical(const X509_EXTENSION *ex);
26 ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ne);
42 should either be B<NULL> or a valid B<X509_EXTENSION> structure it must
74 an B<X509_EXTENSION> pointer or B<NULL> if an error occurs.
H A DX509_REQ_get_extensions.pod13 STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req);
14 int X509_REQ_add_extensions(X509_REQ *req, const STACK_OF(X509_EXTENSION) *exts);
16 const STACK_OF(X509_EXTENSION) *exts, int nid);
35 X509_REQ_get_extensions() returns a pointer to B<STACK_OF(X509_EXTENSION)>
H A DX509V3_get_d2i.pod16 void *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit,
18 int X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value,
21 void *X509V3_EXT_d2i(X509_EXTENSION *ext);
22 X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc);
36 const STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x);
37 const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl);
38 const STACK_OF(X509_EXTENSION) *X509_REVOKED_get0_extensions(const X509_REVOKED *r);
113 The function X509V3_add1_i2d() and its variants allocate B<X509_EXTENSION>
114 objects on STACK I<*x> depending on I<flags>. The B<X509_EXTENSION> objects
212 X509V3_EXT_i2d() returns a pointer to an B<X509_EXTENSION> structure
/freebsd/crypto/openssl/include/openssl/
H A Dx509.h222 typedef struct X509_extension_st X509_EXTENSION; typedef
223 SKM_DEFINE_STACK_OF_INTERNAL(X509_EXTENSION, X509_EXTENSION, X509_EXTENSION)
225 #define sk_X509_EXTENSION_value(sk, idx) ((X509_EXTENSION *)OPENSSL_sk_value(ossl_check_const_X509_…
226 #define sk_X509_EXTENSION_new(cmp) ((STACK_OF(X509_EXTENSION) *)OPENSSL_sk_new(ossl_check_X509_EXTE…
227 #define sk_X509_EXTENSION_new_null() ((STACK_OF(X509_EXTENSION) *)OPENSSL_sk_new_null())
228 #define sk_X509_EXTENSION_new_reserve(cmp, n) ((STACK_OF(X509_EXTENSION) *)OPENSSL_sk_new_reserve(o…
232 #define sk_X509_EXTENSION_delete(sk, i) ((X509_EXTENSION *)OPENSSL_sk_delete(ossl_check_X509_EXTENS…
233 #define sk_X509_EXTENSION_delete_ptr(sk, ptr) ((X509_EXTENSION *)OPENSSL_sk_delete_ptr(ossl_check_X…
236 #define sk_X509_EXTENSION_pop(sk) ((X509_EXTENSION *)OPENSSL_sk_pop(ossl_check_X509_EXTENSION_sk_ty…
237 #define sk_X509_EXTENSION_shift(sk) ((X509_EXTENSION *)OPENSSL_sk_shift(ossl_check_X509_EXTENSION_s…
[all …]
H A Docsp.h.in295 X509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim);
297 X509_EXTENSION *OCSP_accept_responses_new(char **oids);
299 X509_EXTENSION *OCSP_archive_cutoff_new(char *tim);
301 X509_EXTENSION *OCSP_url_svcloc_new(const X509_NAME *issuer, const char **urls);
308 X509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc);
309 X509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc);
314 int OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc);
320 X509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc);
321 X509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc);
325 int OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc);
[all …]
H A Dx509.h.in100 typedef struct X509_extension_st X509_EXTENSION; typedef
102 generate_stack_macros("X509_EXTENSION");
104 typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;
466 DECLARE_ASN1_DUP_FUNCTION(X509_EXTENSION)
542 DECLARE_ASN1_FUNCTIONS(X509_EXTENSION)
670 const STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x);
698 STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req);
700 const STACK_OF(X509_EXTENSION) *exts, int nid);
701 int X509_REQ_add_extensions(X509_REQ *req, const STACK_OF(X509_EXTENSION) *ext);
742 const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl);
[all …]
H A Dts.h151 STACK_OF(X509_EXTENSION) *TS_REQ_get_exts(TS_REQ *a);
157 X509_EXTENSION *TS_REQ_get_ext(TS_REQ *a, int loc);
158 X509_EXTENSION *TS_REQ_delete_ext(TS_REQ *a, int loc);
159 int TS_REQ_add_ext(TS_REQ *a, X509_EXTENSION *ex, int loc);
212 STACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(TS_TST_INFO *a);
219 X509_EXTENSION *TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc);
220 X509_EXTENSION *TS_TST_INFO_delete_ext(TS_TST_INFO *a, int loc);
221 int TS_TST_INFO_add_ext(TS_TST_INFO *a, X509_EXTENSION *ex, int loc);
262 typedef int (*TS_extension_cb) (struct TS_resp_ctx *, X509_EXTENSION *,
456 int TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions);
H A Docsp.h391 X509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim);
393 X509_EXTENSION *OCSP_accept_responses_new(char **oids);
395 X509_EXTENSION *OCSP_archive_cutoff_new(char *tim);
397 X509_EXTENSION *OCSP_url_svcloc_new(const X509_NAME *issuer, const char **urls);
404 X509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc);
405 X509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc);
410 int OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc);
416 X509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc);
417 X509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc);
421 int OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc);
[all …]
H A Dx509v3.h.in623 X509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid,
625 X509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, const char *name,
628 STACK_OF(X509_EXTENSION) **sk);
636 X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf,
639 X509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,
683 const X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext);
687 void *X509V3_EXT_d2i(X509_EXTENSION *ext);
688 void *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit,
691 X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc);
692 int X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value,
[all …]
/freebsd/crypto/openssl/crypto/ts/
H A Dts_req_utils.c132 STACK_OF(X509_EXTENSION) *TS_REQ_get_exts(TS_REQ *a) in STACK_OF() argument
165 X509_EXTENSION *TS_REQ_get_ext(TS_REQ *a, int loc) in TS_REQ_get_ext()
170 X509_EXTENSION *TS_REQ_delete_ext(TS_REQ *a, int loc) in TS_REQ_delete_ext()
175 int TS_REQ_add_ext(TS_REQ *a, X509_EXTENSION *ex, int loc) in TS_REQ_add_ext()
H A Dts_rsp_utils.c293 STACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(TS_TST_INFO *a) in STACK_OF() argument
326 X509_EXTENSION *TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc) in TS_TST_INFO_get_ext()
331 X509_EXTENSION *TS_TST_INFO_delete_ext(TS_TST_INFO *a, int loc) in TS_TST_INFO_delete_ext()
336 int TS_TST_INFO_add_ext(TS_TST_INFO *a, X509_EXTENSION *ex, int loc) in TS_TST_INFO_add_ext()
H A Dts_lib.c48 int TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions) in TS_ext_print_bio()
51 X509_EXTENSION *ex; in TS_ext_print_bio()
H A Dts_local.h48 STACK_OF(X509_EXTENSION) *extensions;
92 STACK_OF(X509_EXTENSION) *extensions;

123