Home
last modified time | relevance | path

Searched refs:X509 (Results 1 – 25 of 216) sorted by relevance

123456789

/minix3/crypto/external/bsd/openssl/dist/crypto/x509/
H A Dx509_cmp.c67 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b) in X509_issuer_and_serial_cmp()
81 unsigned long X509_issuer_and_serial_hash(X509 *a) in X509_issuer_and_serial_hash()
110 int X509_issuer_name_cmp(const X509 *a, const X509 *b) in X509_issuer_name_cmp()
115 int X509_subject_name_cmp(const X509 *a, const X509 *b) in X509_subject_name_cmp()
132 X509_NAME *X509_get_issuer_name(X509 *a) in X509_get_issuer_name()
137 unsigned long X509_issuer_name_hash(X509 *x) in X509_issuer_name_hash()
143 unsigned long X509_issuer_name_hash_old(X509 *x) in X509_issuer_name_hash_old()
149 X509_NAME *X509_get_subject_name(X509 *a) in X509_get_subject_name()
154 ASN1_INTEGER *X509_get_serialNumber(X509 *a) in X509_get_serialNumber()
159 unsigned long X509_subject_name_hash(X509 *x) in X509_subject_name_hash()
[all …]
H A Dx509.h301 DECLARE_STACK_OF(X509)
302 DECLARE_ASN1_SET_OF(X509)
309 int (*check_trust) (struct x509_trust_st *, X509 *, int);
318 X509 *forward;
319 X509 *reverse;
496 X509 *x509;
527 STACK_OF(X509) *certs;
630 int X509_verify(X509 *a, EVP_PKEY *r);
646 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
647 int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx);
[all …]
H A Dx509_vfy.h128 X509 *x509;
196 int (*get_issuer) (X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
198 int (*check_issued) (X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
202 int (*get_crl) (X509_STORE_CTX *ctx, X509_CRL **crl, X509 *x);
206 int (*cert_crl) (X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x);
207 STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm);
239 X509 *cert;
241 STACK_OF(X509) *untrusted;
253 int (*get_issuer) (X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
255 int (*check_issued) (X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
[all …]
H A Dx509_trs.c67 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags);
68 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags);
69 static int trust_compat(X509_TRUST *trust, X509 *x, int flags);
71 static int obj_trust(int id, X509 *x, int flags);
72 static int (*default_trust) (int id, X509 *x, int flags) = obj_trust;
108 int (*X509_TRUST_set_default(int (*trust) (int, X509 *, int))) (int, X509 *, in X509_TRUST_set_default() argument
110 int (*oldtrust) (int, X509 *, int); in X509_TRUST_set_default()
116 int X509_check_trust(X509 *x, int id, int flags) in X509_check_trust()
170 int X509_TRUST_add(int id, int flags, int (*ck) (X509_TRUST *, X509 *, int), in X509_TRUST_add() argument
260 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags) in trust_1oidany()
[all …]
H A Dx509_set.c66 int X509_set_version(X509 *x, long version) in X509_set_version()
77 int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial) in X509_set_serialNumber()
94 int X509_set_issuer_name(X509 *x, X509_NAME *name) in X509_set_issuer_name()
101 int X509_set_subject_name(X509 *x, X509_NAME *name) in X509_set_subject_name()
108 int X509_set_notBefore(X509 *x, const ASN1_TIME *tm) in X509_set_notBefore()
125 int X509_set_notAfter(X509 *x, const ASN1_TIME *tm) in X509_set_notAfter()
142 int X509_set_pubkey(X509 *x, EVP_PKEY *pkey) in X509_set_pubkey()
H A Dx509_ext.c114 int X509_get_ext_count(X509 *x) in X509_get_ext_count()
119 int X509_get_ext_by_NID(X509 *x, int nid, int lastpos) in X509_get_ext_by_NID()
124 int X509_get_ext_by_OBJ(X509 *x, ASN1_OBJECT *obj, int lastpos) in X509_get_ext_by_OBJ()
129 int X509_get_ext_by_critical(X509 *x, int crit, int lastpos) in X509_get_ext_by_critical()
135 X509_EXTENSION *X509_get_ext(X509 *x, int loc) in X509_get_ext()
140 X509_EXTENSION *X509_delete_ext(X509 *x, int loc) in X509_delete_ext()
145 int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc) in X509_add_ext()
150 void *X509_get_ext_d2i(X509 *x, int nid, int *crit, int *idx) in X509_get_ext_d2i()
155 int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit, in X509_add1_ext_i2d()
H A Dx509_vfy.c112 static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
113 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x);
121 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer,
122 unsigned int *preasons, X509_CRL *crl, X509 *x);
124 X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x);
128 static void crl_akid_check(X509_STORE_CTX *ctx, X509_CRL *crl, X509 **pissuer,
130 static int crl_crldp_check(X509 *x, X509_CRL *crl, int crl_score,
132 static int check_crl_path(X509_STORE_CTX *ctx, X509 *x);
134 STACK_OF(X509) *cert_path,
135 STACK_OF(X509) *crl_path);
[all …]
H A Dverify_extra_test.c65 static STACK_OF(X509) *load_certs_from_file(const char *filename) in STACK_OF() argument
67 STACK_OF(X509) *certs; in STACK_OF()
69 X509 *x; in STACK_OF()
137 X509 *x = NULL; in test_alt_chains_cert_forgery()
138 STACK_OF(X509) *untrusted = NULL; in test_alt_chains_cert_forgery()
H A Dx_all.c73 int X509_verify(X509 *a, EVP_PKEY *r) in X509_verify()
93 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) in X509_sign()
100 int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx) in X509_sign_ctx()
143 X509 *d2i_X509_fp(FILE *fp, X509 **x509) in d2i_X509_fp()
145 return ASN1_item_d2i_fp(ASN1_ITEM_rptr(X509), fp, x509); in d2i_X509_fp()
148 int i2d_X509_fp(FILE *fp, X509 *x509) in i2d_X509_fp()
150 return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509), fp, x509); in i2d_X509_fp()
154 X509 *d2i_X509_bio(BIO *bp, X509 **x509) in d2i_X509_bio()
156 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509), bp, x509); in d2i_X509_bio()
159 int i2d_X509_bio(BIO *bp, X509 *x509) in i2d_X509_bio()
[all …]
/minix3/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Dx_x509.c87 X509 *ret = (X509 *)*pval; in x509_cb()
137 ASN1_SEQUENCE_ref(X509, x509_cb, CRYPTO_LOCK_X509) = {
138 ASN1_SIMPLE(X509, cert_info, X509_CINF),
139 ASN1_SIMPLE(X509, sig_alg, X509_ALGOR),
140 ASN1_SIMPLE(X509, signature, ASN1_BIT_STRING)
141 } ASN1_SEQUENCE_END_ref(X509, X509)
143 IMPLEMENT_ASN1_FUNCTIONS(X509)
145 IMPLEMENT_ASN1_DUP_FUNCTION(X509)
154 int X509_set_ex_data(X509 *r, int idx, void *arg) in X509_set_ex_data()
159 void *X509_get_ex_data(X509 *r, int idx) in X509_get_ex_data()
[all …]
H A Dx_x509a.c73 static X509_CERT_AUX *aux_get(X509 *x);
85 static X509_CERT_AUX *aux_get(X509 *x)
94 int X509_alias_set1(X509 *x, unsigned char *name, int len) in X509_alias_set1()
111 int X509_keyid_set1(X509 *x, unsigned char *id, int len) in X509_keyid_set1()
128 unsigned char *X509_alias_get0(X509 *x, int *len) in X509_alias_get0()
137 unsigned char *X509_keyid_get0(X509 *x, int *len) in X509_keyid_get0()
146 int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj) in X509_add1_trust_object()
159 int X509_add1_reject_object(X509 *x, ASN1_OBJECT *obj) in X509_add1_reject_object()
172 void X509_trust_clear(X509 *x) in X509_trust_clear()
180 void X509_reject_clear(X509 *x) in X509_reject_clear()
[all …]
/minix3/crypto/external/bsd/openssl/dist/crypto/ocsp/
H A Docsp_vfy.c64 static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs,
65 STACK_OF(X509) *certs, X509_STORE *st,
67 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id);
68 static int ocsp_check_issuer(OCSP_BASICRESP *bs, STACK_OF(X509) *chain,
72 static int ocsp_match_issuerid(X509 *cert, OCSP_CERTID *cid,
74 static int ocsp_check_delegated(X509 *x, int flags);
75 static int ocsp_req_find_signer(X509 **psigner, OCSP_REQUEST *req,
76 X509_NAME *nm, STACK_OF(X509) *certs,
81 int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, in OCSP_basic_verify()
84 X509 *signer, *x; in OCSP_basic_verify()
[all …]
/minix3/usr.sbin/syslogd/
H A Dtls.h163 bool read_certfile(X509 **, const char *);
164 bool write_x509files(EVP_PKEY *, X509 *, const char *, const char *);
165 bool mk_x509_cert(X509 **, EVP_PKEY **, int, int, int);
166 bool x509_cert_add_subjectAltName(X509 *, X509V3_CTX *);
169 bool get_fingerprint(const X509 *, char **, const char *);
170 bool get_commonname(X509 *, char **);
171 bool match_hostnames(X509 *, const char *, const char *);
172 bool match_fingerprint(const X509 *, const char *);
173 bool match_certfile(const X509 *, const char *);
/minix3/crypto/external/bsd/openssl/dist/doc/crypto/
H A DX509_new.pod5 X509_new, X509_free - X509 certificate ASN1 allocation functions
11 X509 *X509_new(void);
12 void X509_free(X509 *a);
16 The X509 ASN1 allocation routines, allocate and free an
17 X509 structure, which represents an X509 certificate.
19 X509_new() allocates and initializes a X509 structure.
21 X509_free() frees up the B<X509> structure B<a>.
H A Dd2i_X509.pod6 i2d_X509_fp - X509 encode and decode functions
12 X509 *d2i_X509(X509 **px, const unsigned char **in, int len);
13 int i2d_X509(X509 *x, unsigned char **out);
15 X509 *d2i_X509_bio(BIO *bp, X509 **x);
16 X509 *d2i_X509_fp(FILE *fp, X509 **x);
18 int i2d_X509_bio(BIO *bp, X509 *x);
19 int i2d_X509_fp(FILE *fp, X509 *x);
23 The X509 encode and decode routines encode and parse an
24 B<X509> structure, which represents an X509 certificate.
27 successful a pointer to the B<X509> structure is returned. If an error
[all …]
/minix3/crypto/external/bsd/openssl/dist/crypto/x509v3/
H A Dv3_purp.c65 static void x509v3_cache_extensions(X509 *x);
67 static int check_ssl_ca(const X509 *x);
68 static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x,
70 static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x,
72 static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x,
74 static int purpose_smime(const X509 *x, int ca);
75 static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x,
77 static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x,
79 static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x,
81 static int check_purpose_timestamp_sign(const X509_PURPOSE *xp, const X509 *x,
[all …]
/minix3/crypto/external/bsd/openssl/dist/crypto/pkcs12/
H A Dp12_kiss.c67 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
70 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
73 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
82 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse()
83 STACK_OF(X509) **ca) in PKCS12_parse()
85 STACK_OF(X509) *ocerts = NULL; in PKCS12_parse()
86 X509 *x = NULL; in PKCS12_parse()
181 EVP_PKEY **pkey, STACK_OF(X509) *ocerts) in parse_pk12()
215 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) in parse_bags()
227 EVP_PKEY **pkey, STACK_OF(X509) *ocerts) in parse_bag()
[all …]
/minix3/crypto/external/bsd/openssl/dist/crypto/pkcs7/
H A Dpkcs7.h111 X509 *cert; /* get the pub-key from this */
120 STACK_OF(X509) *cert; /* [ 0 ] */
146 STACK_OF(X509) *cert; /* [ 0 ] */
294 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
298 int PKCS7_add_certificate(PKCS7 *p7, X509 *x509);
304 X509 *x509);
308 BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert);
310 PKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509,
312 X509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si);
316 PKCS7_RECIP_INFO *PKCS7_add_recipient(PKCS7 *p7, X509 *x509);
[all …]
H A Dpk7_smime.c69 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign()
155 PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert, in PKCS7_sign_add_signer()
249 int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, in PKCS7_verify()
252 STACK_OF(X509) *signers; in PKCS7_verify()
253 X509 *signer; in PKCS7_verify()
413 STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, in STACK_OF() argument
416 STACK_OF(X509) *signers; in STACK_OF()
420 X509 *signer; in STACK_OF()
477 PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher, in PKCS7_encrypt()
483 X509 *x509; in PKCS7_encrypt()
[all …]
/minix3/crypto/external/bsd/openssl/dist/crypto/cms/
H A Dcms.h141 CMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey,
142 STACK_OF(X509) *certs, BIO *data,
146 X509 *signcert, EVP_PKEY *pkey,
147 STACK_OF(X509) *certs, unsigned int flags);
168 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs,
172 STACK_OF(X509) *certs,
175 STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms);
177 CMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in,
180 int CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert,
183 int CMS_decrypt_set1_pkey(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert);
[all …]
/minix3/crypto/external/bsd/openssl/dist/crypto/pem/
H A Dpem_x509.c68 IMPLEMENT_PEM_rw(X509, X509, PEM_STRING_X509, X509)
/minix3/crypto/external/bsd/openssl/dist/crypto/ts/
H A Dts_rsp_verify.c68 static int TS_verify_cert(X509_STORE *store, STACK_OF(X509) *untrusted,
69 X509 *signer, STACK_OF(X509) **chain);
71 STACK_OF(X509) *chain);
73 static int TS_find_cert(STACK_OF(ESS_CERT_ID) *cert_ids, X509 *cert);
87 static int TS_check_signer_name(GENERAL_NAME *tsa_name, X509 *signer);
159 int TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs, in TS_RESP_verify_signature()
160 X509_STORE *store, X509 **signer_out) in TS_RESP_verify_signature()
164 STACK_OF(X509) *signers = NULL; in TS_RESP_verify_signature()
165 X509 *signer; in TS_RESP_verify_signature()
166 STACK_OF(X509) *chain = NULL; in TS_RESP_verify_signature()
[all …]
/minix3/crypto/external/bsd/openssl/dist/doc/ssl/
H A DSSL_get_peer_certificate.pod5 SSL_get_peer_certificate - get the X509 certificate of the peer
11 X509 *SSL_get_peer_certificate(const SSL *ssl);
15 SSL_get_peer_certificate() returns a pointer to the X509 certificate the
30 The reference count of the X509 object is incremented by one, so that it
32 freed. The X509 object must be explicitly freed using X509_free().
44 =item Pointer to an X509 certificate
H A DSSL_get_peer_cert_chain.pod5 SSL_get_peer_cert_chain - get the X509 certificate chain of the peer
11 STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *ssl);
15 SSL_get_peer_cert_chain() returns a pointer to STACK_OF(X509) certificates
27 The reference count of the STACK_OF(X509) object is not incremented.
42 =item Pointer to a STACK_OF(X509)
/minix3/crypto/external/bsd/openssl/dist/demos/x509/
H A Dmkcert.c15 int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days);
16 int add_ext(X509 *cert, int nid, char *value);
21 X509 *x509 = NULL; in main()
64 int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days) in mkcert()
66 X509 *x; in mkcert()
150 int add_ext(X509 *cert, int nid, char *value) in add_ext()

123456789