webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
x509.h
Go to the documentation of this file.
1 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
2  * All rights reserved.
3  *
4  * This package is an SSL implementation written
5  * by Eric Young (eay@cryptsoft.com).
6  * The implementation was written so as to conform with Netscapes SSL.
7  *
8  * This library is free for commercial and non-commercial use as long as
9  * the following conditions are aheared to. The following conditions
10  * apply to all code found in this distribution, be it the RC4, RSA,
11  * lhash, DES, etc., code; not just the SSL code. The SSL documentation
12  * included with this distribution is covered by the same copyright terms
13  * except that the holder is Tim Hudson (tjh@cryptsoft.com).
14  *
15  * Copyright remains Eric Young's, and as such any Copyright notices in
16  * the code are not to be removed.
17  * If this package is used in a product, Eric Young should be given attribution
18  * as the author of the parts of the library used.
19  * This can be in the form of a textual message at program startup or
20  * in documentation (online or textual) provided with the package.
21  *
22  * Redistribution and use in source and binary forms, with or without
23  * modification, are permitted provided that the following conditions
24  * are met:
25  * 1. Redistributions of source code must retain the copyright
26  * notice, this list of conditions and the following disclaimer.
27  * 2. Redistributions in binary form must reproduce the above copyright
28  * notice, this list of conditions and the following disclaimer in the
29  * documentation and/or other materials provided with the distribution.
30  * 3. All advertising materials mentioning features or use of this software
31  * must display the following acknowledgement:
32  * "This product includes cryptographic software written by
33  * Eric Young (eay@cryptsoft.com)"
34  * The word 'cryptographic' can be left out if the rouines from the library
35  * being used are not cryptographic related :-).
36  * 4. If you include any Windows specific code (or a derivative thereof) from
37  * the apps directory (application code) you must include an acknowledgement:
38  * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
39  *
40  * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
41  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
43  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
44  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
45  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
46  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
48  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
49  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
50  * SUCH DAMAGE.
51  *
52  * The licence and distribution terms for any publically available version or
53  * derivative of this code cannot be changed. i.e. this code cannot simply be
54  * copied and put under another distribution licence
55  * [including the GNU Public Licence.]
56  */
57 /* ====================================================================
58  * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
59  * ECDH support in OpenSSL originally developed by
60  * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
61  */
62 
63 #ifndef HEADER_X509_H
64 #define HEADER_X509_H
65 
66 #include <openssl/base.h>
67 
68 #include <time.h>
69 
70 #include <openssl/asn1.h>
71 #include <openssl/bio.h>
72 #include <openssl/cipher.h>
73 #include <openssl/dh.h>
74 #include <openssl/dsa.h>
75 #include <openssl/ecdh.h>
76 #include <openssl/ecdsa.h>
77 #include <openssl/ec.h>
78 #include <openssl/evp.h>
79 #include <openssl/obj.h>
80 #include <openssl/rsa.h>
81 #include <openssl/sha.h>
82 #include <openssl/stack.h>
83 #include <openssl/thread.h>
84 
85 #ifdef __cplusplus
86 extern "C" {
87 #endif
88 
89 
90 #define X509_FILETYPE_PEM 1
91 #define X509_FILETYPE_ASN1 2
92 #define X509_FILETYPE_DEFAULT 3
93 
94 #define X509v3_KU_DIGITAL_SIGNATURE 0x0080
95 #define X509v3_KU_NON_REPUDIATION 0x0040
96 #define X509v3_KU_KEY_ENCIPHERMENT 0x0020
97 #define X509v3_KU_DATA_ENCIPHERMENT 0x0010
98 #define X509v3_KU_KEY_AGREEMENT 0x0008
99 #define X509v3_KU_KEY_CERT_SIGN 0x0004
100 #define X509v3_KU_CRL_SIGN 0x0002
101 #define X509v3_KU_ENCIPHER_ONLY 0x0001
102 #define X509v3_KU_DECIPHER_ONLY 0x8000
103 #define X509v3_KU_UNDEF 0xffff
104 
106  {
107  int nid;
108  int (*a2i)(void);
109  int (*i2a)(void);
110  } /* X509_OBJECTS */;
111 
113 
114 typedef STACK_OF(X509_ALGOR) X509_ALGORS;
115 
117  {
120  } /* X509_VAL */;
121 
123  {
127  };
128 
130  {
133  } /* X509_SIG */;
134 
136  {
139  int set;
140  int size; /* temp variable */
141  } /* X509_NAME_ENTRY */;
142 
145 
146 /* we always keep X509_NAMEs in 2 forms. */
148  {
149  STACK_OF(X509_NAME_ENTRY) *entries;
150  int modified; /* true if 'bytes' needs to be built */
151 #ifndef OPENSSL_NO_BUFFER
153 #else
154  char *bytes;
155 #endif
156 /* unsigned long hash; Keep the hash around for lookups */
157  unsigned char *canon_enc;
159  } /* X509_NAME */;
160 
162 
163 #define X509_EX_V_NETSCAPE_HACK 0x8000
164 #define X509_EX_V_INIT 0x0001
166  {
170  } /* X509_EXTENSION */;
171 
172 typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;
173 
176 
177 /* a sequence of these are used */
179  {
181  int single; /* 0 for a set, 1 for a single item (which is wrong) */
182  union {
183  char *ptr;
184 /* 0 */ STACK_OF(ASN1_TYPE) *set;
185 /* 1 */ ASN1_TYPE *single;
186  } value;
187  } /* X509_ATTRIBUTE */;
188 
191 
192 
194  {
199  /* d=2 hl=2 l= 0 cons: cont: 00 */
200  STACK_OF(X509_ATTRIBUTE) *attributes; /* [ 0 ] */
201  } /* X509_REQ_INFO */;
202 
204  {
209  } /* X509_REQ */;
210 
212  {
213  ASN1_INTEGER *version; /* [ 0 ] default of v1 */
220  ASN1_BIT_STRING *issuerUID; /* [ 1 ] optional in v2 */
221  ASN1_BIT_STRING *subjectUID; /* [ 2 ] optional in v2 */
222  STACK_OF(X509_EXTENSION) *extensions; /* [ 3 ] optional in v3 */
224  } /* X509_CINF */;
225 
226 /* This stuff is certificate "auxiliary info"
227  * it contains details which are useful in certificate
228  * stores and databases. When used this is tagged onto
229  * the end of the certificate itself
230  */
231 
233  {
234  STACK_OF(ASN1_OBJECT) *trust; /* trusted uses */
235  STACK_OF(ASN1_OBJECT) *reject; /* rejected uses */
236  ASN1_UTF8STRING *alias; /* "friendly name" */
237  ASN1_OCTET_STRING *keyid; /* key id of private key */
238  STACK_OF(X509_ALGOR) *other; /* other unspecified info */
239  } /* X509_CERT_AUX */;
240 
241 struct x509_st
242  {
247  char *name;
249  /* These contain copies of various extension values */
252  unsigned long ex_flags;
253  unsigned long ex_kusage;
254  unsigned long ex_xkusage;
255  unsigned long ex_nscert;
259  STACK_OF(DIST_POINT) *crldp;
260  STACK_OF(GENERAL_NAME) *altname;
262  unsigned char sha1_hash[SHA_DIGEST_LENGTH];
264  } /* X509 */;
265 
268 
269 /* This is used for a table of trust checking functions */
270 
272  int trust;
273  int flags;
274  int (*check_trust)(struct x509_trust_st *, X509 *, int);
275  char *name;
276  int arg1;
277  void *arg2;
278 } /* X509_TRUST */;
279 
281 
285 } /* X509_CERT_PAIR */;
286 
287 /* standard trust ids */
288 
289 #define X509_TRUST_DEFAULT (-1) /* Only valid in purpose settings */
290 
291 #define X509_TRUST_COMPAT 1
292 #define X509_TRUST_SSL_CLIENT 2
293 #define X509_TRUST_SSL_SERVER 3
294 #define X509_TRUST_EMAIL 4
295 #define X509_TRUST_OBJECT_SIGN 5
296 #define X509_TRUST_OCSP_SIGN 6
297 #define X509_TRUST_OCSP_REQUEST 7
298 #define X509_TRUST_TSA 8
299 
300 /* Keep these up to date! */
301 #define X509_TRUST_MIN 1
302 #define X509_TRUST_MAX 8
303 
304 
305 /* trust_flags values */
306 #define X509_TRUST_DYNAMIC 1
307 #define X509_TRUST_DYNAMIC_NAME 2
308 
309 /* check_trust return codes */
310 
311 #define X509_TRUST_TRUSTED 1
312 #define X509_TRUST_REJECTED 2
313 #define X509_TRUST_UNTRUSTED 3
314 
315 /* Flags for X509_print_ex() */
316 
317 #define X509_FLAG_COMPAT 0
318 #define X509_FLAG_NO_HEADER 1L
319 #define X509_FLAG_NO_VERSION (1L << 1)
320 #define X509_FLAG_NO_SERIAL (1L << 2)
321 #define X509_FLAG_NO_SIGNAME (1L << 3)
322 #define X509_FLAG_NO_ISSUER (1L << 4)
323 #define X509_FLAG_NO_VALIDITY (1L << 5)
324 #define X509_FLAG_NO_SUBJECT (1L << 6)
325 #define X509_FLAG_NO_PUBKEY (1L << 7)
326 #define X509_FLAG_NO_EXTENSIONS (1L << 8)
327 #define X509_FLAG_NO_SIGDUMP (1L << 9)
328 #define X509_FLAG_NO_AUX (1L << 10)
329 #define X509_FLAG_NO_ATTRIBUTES (1L << 11)
330 #define X509_FLAG_NO_IDS (1L << 12)
331 
332 /* Flags specific to X509_NAME_print_ex() */
333 
334 /* The field separator information */
335 
336 #define XN_FLAG_SEP_MASK (0xf << 16)
337 
338 #define XN_FLAG_COMPAT 0 /* Traditional SSLeay: use old X509_NAME_print */
339 #define XN_FLAG_SEP_COMMA_PLUS (1 << 16) /* RFC2253 ,+ */
340 #define XN_FLAG_SEP_CPLUS_SPC (2 << 16) /* ,+ spaced: more readable */
341 #define XN_FLAG_SEP_SPLUS_SPC (3 << 16) /* ;+ spaced */
342 #define XN_FLAG_SEP_MULTILINE (4 << 16) /* One line per field */
343 
344 #define XN_FLAG_DN_REV (1 << 20) /* Reverse DN order */
345 
346 /* How the field name is shown */
347 
348 #define XN_FLAG_FN_MASK (0x3 << 21)
349 
350 #define XN_FLAG_FN_SN 0 /* Object short name */
351 #define XN_FLAG_FN_LN (1 << 21) /* Object long name */
352 #define XN_FLAG_FN_OID (2 << 21) /* Always use OIDs */
353 #define XN_FLAG_FN_NONE (3 << 21) /* No field names */
354 
355 #define XN_FLAG_SPC_EQ (1 << 23) /* Put spaces round '=' */
356 
357 /* This determines if we dump fields we don't recognise:
358  * RFC2253 requires this.
359  */
360 
361 #define XN_FLAG_DUMP_UNKNOWN_FIELDS (1 << 24)
362 
363 #define XN_FLAG_FN_ALIGN (1 << 25) /* Align field names to 20 characters */
364 
365 /* Complete set of RFC2253 flags */
366 
367 #define XN_FLAG_RFC2253 (ASN1_STRFLGS_RFC2253 | \
368  XN_FLAG_SEP_COMMA_PLUS | \
369  XN_FLAG_DN_REV | \
370  XN_FLAG_FN_SN | \
371  XN_FLAG_DUMP_UNKNOWN_FIELDS)
372 
373 /* readable oneline form */
374 
375 #define XN_FLAG_ONELINE (ASN1_STRFLGS_RFC2253 | \
376  ASN1_STRFLGS_ESC_QUOTE | \
377  XN_FLAG_SEP_CPLUS_SPC | \
378  XN_FLAG_SPC_EQ | \
379  XN_FLAG_FN_SN)
380 
381 /* readable multiline form */
382 
383 #define XN_FLAG_MULTILINE (ASN1_STRFLGS_ESC_CTRL | \
384  ASN1_STRFLGS_ESC_MSB | \
385  XN_FLAG_SEP_MULTILINE | \
386  XN_FLAG_SPC_EQ | \
387  XN_FLAG_FN_LN | \
388  XN_FLAG_FN_ALIGN)
389 
391  {
394  STACK_OF(X509_EXTENSION) /* optional */ *extensions;
395  /* Set up if indirect CRL */
396  STACK_OF(GENERAL_NAME) *issuer;
397  /* Revocation reason */
398  int reason;
399  int sequence; /* load sequence */
400  };
401 
404 
406  {
412  STACK_OF(X509_REVOKED) *revoked;
413  STACK_OF(X509_EXTENSION) /* [0] */ *extensions;
415  } /* X509_CRL_INFO */;
416 
418  {
419  /* actual signature */
424  int flags;
425  /* Copies of various extensions */
428  /* Convenient breakdown of IDP */
431  /* CRL and base CRL numbers for delta processing */
434  unsigned char sha1_hash[SHA_DIGEST_LENGTH];
435  STACK_OF(GENERAL_NAMES) *issuers;
437  void *meth_data;
438  } /* X509_CRL */;
439 
442 
444  {
445  int version;
446  /* The PKCS#8 data types */
448  ASN1_OCTET_STRING *enc_pkey; /* encrypted pub key */
449 
450  /* When decrypted, the following will not be NULL */
452 
453  /* used to encrypt and decrypt */
455  char *key_data;
456  int key_free; /* true if we should auto free key_data */
457 
458  /* expanded version of 'enc_algor' */
460  } /* X509_PKEY */;
461 
462 #ifndef OPENSSL_NO_EVP
464  {
468 
470  int enc_len;
471  char *enc_data;
472 
473  } /* X509_INFO */;
474 
476 #endif
477 
478 /* The next 2 structures and their 8 routines were sent to me by
479  * Pat Richard <patr@x509.com> and are used to manipulate
480  * Netscapes spki structures - useful if you are writing a CA web page
481  */
483  {
485  ASN1_IA5STRING *challenge; /* challenge sent in atlas >= PR2 */
486  } /* NETSCAPE_SPKAC */;
487 
489  {
490  NETSCAPE_SPKAC *spkac; /* signed public key and challenge */
493  } /* NETSCAPE_SPKI */;
494 
495 /* Netscape certificate sequence structure */
497  {
499  STACK_OF(X509) *certs;
500  } /* NETSCAPE_CERT_SEQUENCE */;
501 
502 /* Unused (and iv length is wrong)
503 typedef struct CBCParameter_st
504  {
505  unsigned char iv[8];
506  } CBC_PARAM;
507 */
508 
509 /* Password based encryption structure */
510 
511 struct PBEPARAM_st {
514 } /* PBEPARAM */;
515 
516 /* Password based encryption V2 structures */
517 
518 struct PBE2PARAM_st {
521 } /* PBE2PARAM */;
522 
524 ASN1_TYPE *salt; /* Usually OCTET STRING but could be anything */
528 } /* PBKDF2PARAM */;
529 
530 
531 /* PKCS#8 private key info structure */
532 
534  {
535  int broken; /* Flag for various broken formats */
536 #define PKCS8_OK 0
537 #define PKCS8_NO_OCTET 1
538 #define PKCS8_EMBEDDED_PARAM 2
539 #define PKCS8_NS_DB 3
540 #define PKCS8_NEG_PRIVKEY 4
543  ASN1_TYPE *pkey; /* Should be OCTET STRING but some are broken */
545  };
546 
547 #ifdef __cplusplus
548 }
549 #endif
550 
551 #include <openssl/x509_vfy.h>
552 
553 #ifdef __cplusplus
554 extern "C" {
555 #endif
556 
557 #define X509_EXT_PACK_UNKNOWN 1
558 #define X509_EXT_PACK_STRING 2
559 
560 #define X509_get_version(x) ASN1_INTEGER_get((x)->cert_info->version)
561 /* #define X509_get_serialNumber(x) ((x)->cert_info->serialNumber) */
562 #define X509_get_notBefore(x) ((x)->cert_info->validity->notBefore)
563 #define X509_get_notAfter(x) ((x)->cert_info->validity->notAfter)
564 #define X509_get_cert_info(x) ((x)->cert_info)
565 #define X509_extract_key(x) X509_get_pubkey(x) /*****/
566 #define X509_REQ_get_version(x) ASN1_INTEGER_get((x)->req_info->version)
567 #define X509_REQ_get_subject_name(x) ((x)->req_info->subject)
568 #define X509_REQ_extract_key(a) X509_REQ_get_pubkey(a)
569 #define X509_name_cmp(a,b) X509_NAME_cmp((a),(b))
570 #define X509_get_signature_type(x) EVP_PKEY_type(OBJ_obj2nid((x)->sig_alg->algorithm))
571 
572 #define X509_CRL_get_version(x) ASN1_INTEGER_get((x)->crl->version)
573 #define X509_CRL_get_lastUpdate(x) ((x)->crl->lastUpdate)
574 #define X509_CRL_get_nextUpdate(x) ((x)->crl->nextUpdate)
575 #define X509_CRL_get_issuer(x) ((x)->crl->issuer)
576 #define X509_CRL_get_REVOKED(x) ((x)->crl->revoked)
577 
578 #define X509_CINF_set_modified(c) ((c)->enc.modified = 1)
579 #define X509_CINF_get_issuer(c) (&(c)->issuer)
580 #define X509_CINF_get_extensions(c) ((c)->extensions)
581 #define X509_CINF_get_signature(c) ((c)->signature)
582 
585  int (*crl_init)(X509_CRL *crl),
586  int (*crl_free)(X509_CRL *crl),
587  int (*crl_lookup)(X509_CRL *crl, X509_REVOKED **ret,
588  ASN1_INTEGER *ser, X509_NAME *issuer),
589  int (*crl_verify)(X509_CRL *crl, EVP_PKEY *pk));
591 
592 OPENSSL_EXPORT void X509_CRL_set_meth_data(X509_CRL *crl, void *dat);
594 
595 /* This one is only used so that a binary form can output, as in
596  * i2d_X509_NAME(X509_get_X509_PUBKEY(x),&buf) */
597 #define X509_get_X509_PUBKEY(x) ((x)->cert_info->key)
598 
599 
601 
602 #ifndef OPENSSL_NO_EVP
604 
608 
613 
615 
616 OPENSSL_EXPORT int X509_signature_dump(BIO *bp,const ASN1_STRING *sig, int indent);
618 
619 OPENSSL_EXPORT int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
621 OPENSSL_EXPORT int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md);
623 OPENSSL_EXPORT int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md);
626 
628  unsigned char *md, unsigned int *len);
629 OPENSSL_EXPORT int X509_digest(const X509 *data,const EVP_MD *type,
630  unsigned char *md, unsigned int *len);
632  unsigned char *md, unsigned int *len);
634  unsigned char *md, unsigned int *len);
636  unsigned char *md, unsigned int *len);
637 #endif
638 
639 #ifndef OPENSSL_NO_FP_API
640 OPENSSL_EXPORT X509 *d2i_X509_fp(FILE *fp, X509 **x509);
641 OPENSSL_EXPORT int i2d_X509_fp(FILE *fp,X509 *x509);
652 #ifndef OPENSSL_NO_DSA
657 #endif
659 OPENSSL_EXPORT int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey);
665  PKCS8_PRIV_KEY_INFO **p8inf);
670 OPENSSL_EXPORT int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey);
672 #endif
673 
675 OPENSSL_EXPORT int i2d_X509_bio(BIO *bp,X509 *x509);
686 #ifndef OPENSSL_NO_DSA
691 #endif
693 OPENSSL_EXPORT int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey);
699  PKCS8_PRIV_KEY_INFO **p8inf);
704 OPENSSL_EXPORT int i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey);
706 
714 OPENSSL_EXPORT int X509_ALGOR_set0(X509_ALGOR *alg, const ASN1_OBJECT *aobj, int ptype, void *pval);
715 OPENSSL_EXPORT void X509_ALGOR_get0(ASN1_OBJECT **paobj, int *pptype, void **ppval,
716  X509_ALGOR *algor);
719 
722 
723 OPENSSL_EXPORT int X509_cmp_time(const ASN1_TIME *s, time_t *t);
725 OPENSSL_EXPORT ASN1_TIME * X509_time_adj(ASN1_TIME *s, long adj, time_t *t);
726 OPENSSL_EXPORT ASN1_TIME * X509_time_adj_ex(ASN1_TIME *s, int offset_day, long offset_sec, time_t *t);
728 
729 OPENSSL_EXPORT const char * X509_get_default_cert_area(void );
730 OPENSSL_EXPORT const char * X509_get_default_cert_dir(void );
731 OPENSSL_EXPORT const char * X509_get_default_cert_file(void );
734 OPENSSL_EXPORT const char * X509_get_default_private_dir(void );
735 
738 
739 DECLARE_ASN1_ENCODE_FUNCTIONS(X509_ALGORS, X509_ALGORS, X509_ALGORS)
741 
743 
746 OPENSSL_EXPORT int i2d_PUBKEY(const EVP_PKEY *a,unsigned char **pp);
747 OPENSSL_EXPORT EVP_PKEY * d2i_PUBKEY(EVP_PKEY **a,const unsigned char **pp,
748  long length);
749 OPENSSL_EXPORT int i2d_RSA_PUBKEY(const RSA *a,unsigned char **pp);
750 OPENSSL_EXPORT RSA * d2i_RSA_PUBKEY(RSA **a,const unsigned char **pp,
751  long length);
752 #ifndef OPENSSL_NO_DSA
753 OPENSSL_EXPORT int i2d_DSA_PUBKEY(const DSA *a,unsigned char **pp);
754 OPENSSL_EXPORT DSA * d2i_DSA_PUBKEY(DSA **a,const unsigned char **pp,
755  long length);
756 #endif
757 OPENSSL_EXPORT int i2d_EC_PUBKEY(const EC_KEY *a, unsigned char **pp);
758 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp,
759  long length);
760 
764 
767 
769 DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
770 
772 
774 
776 
778 
781 
783 
784 /* X509_up_ref adds one to the reference count of |x| and returns one. */
786 
787 OPENSSL_EXPORT int X509_get_ex_new_index(long argl, void *argp, CRYPTO_EX_unused *unused,
788  CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
789 OPENSSL_EXPORT int X509_set_ex_data(X509 *r, int idx, void *arg);
790 OPENSSL_EXPORT void *X509_get_ex_data(X509 *r, int idx);
791 OPENSSL_EXPORT int i2d_X509_AUX(X509 *a,unsigned char **pp);
792 OPENSSL_EXPORT X509 * d2i_X509_AUX(X509 **a,const unsigned char **pp,long length);
793 
795  const X509 *x);
797 
798 OPENSSL_EXPORT int X509_alias_set1(X509 *x, unsigned char *name, int len);
799 OPENSSL_EXPORT int X509_keyid_set1(X509 *x, unsigned char *id, int len);
800 OPENSSL_EXPORT unsigned char * X509_alias_get0(X509 *x, int *len);
801 OPENSSL_EXPORT unsigned char * X509_keyid_get0(X509 *x, int *len);
802 OPENSSL_EXPORT int (*X509_TRUST_set_default(int (*trust)(int , X509 *, int)))(int, X509 *, int);
803 OPENSSL_EXPORT int X509_TRUST_set(int *t, int trust);
806 OPENSSL_EXPORT void X509_trust_clear(X509 *x);
808 
812 
815  X509_REVOKED **ret, ASN1_INTEGER *serial);
817 
820 
824 
825 #ifndef OPENSSL_NO_EVP
829 
830 OPENSSL_EXPORT int ASN1_digest(i2d_of_void *i2d,const EVP_MD *type,char *data,
831  unsigned char *md,unsigned int *len);
832 
833 OPENSSL_EXPORT int ASN1_item_digest(const ASN1_ITEM *it,const EVP_MD *type,void *data,
834  unsigned char *md,unsigned int *len);
835 
836 OPENSSL_EXPORT int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *algor1,
837  ASN1_BIT_STRING *signature,void *data,EVP_PKEY *pkey);
838 
839 OPENSSL_EXPORT int ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2,
840  ASN1_BIT_STRING *signature,
841  void *data, EVP_PKEY *pkey, const EVP_MD *type);
843  X509_ALGOR *algor1, X509_ALGOR *algor2,
844  ASN1_BIT_STRING *signature, void *asn, EVP_MD_CTX *ctx);
845 #endif
846 
847 OPENSSL_EXPORT int X509_set_version(X509 *x,long version);
854 OPENSSL_EXPORT int X509_set_notBefore(X509 *x, const ASN1_TIME *tm);
855 OPENSSL_EXPORT int X509_set_notAfter(X509 *x, const ASN1_TIME *tm);
856 OPENSSL_EXPORT int X509_set_pubkey(X509 *x, EVP_PKEY *pkey);
859 OPENSSL_EXPORT int X509_certificate_type(X509 *x,EVP_PKEY *pubkey /* optional */);
860 OPENSSL_EXPORT STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x);
861 
868 OPENSSL_EXPORT void X509_REQ_set_extension_nids(const int *nids);
869 OPENSSL_EXPORT STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req);
871  int nid);
875  int lastpos);
877  int lastpos);
882  const ASN1_OBJECT *obj, int type,
883  const unsigned char *bytes, int len);
885  int nid, int type,
886  const unsigned char *bytes, int len);
888  const char *attrname, int type,
889  const unsigned char *bytes, int len);
890 
897 
900 
902  EVP_PKEY *skey, const EVP_MD *md, unsigned int flags);
903 
905 
906 OPENSSL_EXPORT int X509_check_private_key(X509 *x509,EVP_PKEY *pkey);
907 OPENSSL_EXPORT int X509_chain_check_suiteb(int *perror_depth,
908  X509 *x, STACK_OF(X509) *chain,
909  unsigned long flags);
911  unsigned long flags);
912 OPENSSL_EXPORT STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain);
913 
914 OPENSSL_EXPORT int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b);
915 OPENSSL_EXPORT unsigned long X509_issuer_and_serial_hash(X509 *a);
916 
917 OPENSSL_EXPORT int X509_issuer_name_cmp(const X509 *a, const X509 *b);
918 OPENSSL_EXPORT unsigned long X509_issuer_name_hash(X509 *a);
919 
920 OPENSSL_EXPORT int X509_subject_name_cmp(const X509 *a, const X509 *b);
921 OPENSSL_EXPORT unsigned long X509_subject_name_hash(X509 *x);
922 
923 OPENSSL_EXPORT unsigned long X509_issuer_name_hash_old(X509 *a);
924 OPENSSL_EXPORT unsigned long X509_subject_name_hash_old(X509 *x);
925 
926 OPENSSL_EXPORT int X509_cmp(const X509 *a, const X509 *b);
927 OPENSSL_EXPORT int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b);
928 OPENSSL_EXPORT unsigned long X509_NAME_hash(X509_NAME *x);
930 
931 OPENSSL_EXPORT int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b);
932 OPENSSL_EXPORT int X509_CRL_match(const X509_CRL *a, const X509_CRL *b);
933 #ifndef OPENSSL_NO_FP_API
934 OPENSSL_EXPORT int X509_print_ex_fp(FILE *bp,X509 *x, unsigned long nmflag, unsigned long cflag);
935 OPENSSL_EXPORT int X509_print_fp(FILE *bp,X509 *x);
938 OPENSSL_EXPORT int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags);
939 #endif
940 
941 OPENSSL_EXPORT int X509_NAME_print(BIO *bp, X509_NAME *name, int obase);
942 OPENSSL_EXPORT int X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent, unsigned long flags);
943 OPENSSL_EXPORT int X509_print_ex(BIO *bp,X509 *x, unsigned long nmflag, unsigned long cflag);
944 OPENSSL_EXPORT int X509_print(BIO *bp,X509 *x);
945 OPENSSL_EXPORT int X509_ocspid_print(BIO *bp,X509 *x);
946 OPENSSL_EXPORT int X509_CERT_AUX_print(BIO *bp,X509_CERT_AUX *x, int indent);
948 OPENSSL_EXPORT int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag, unsigned long cflag);
950 
953  char *buf,int len);
955  char *buf,int len);
956 
957 /* NOTE: you should be passsing -1, not 0 as lastpos. The functions that use
958  * lastpos, search after that position on. */
961  int lastpos);
965  int loc, int set);
967  unsigned char *bytes, int len, int loc, int set);
969  unsigned char *bytes, int len, int loc, int set);
971  const char *field, int type, const unsigned char *bytes, int len);
973  int type,unsigned char *bytes, int len);
975  const unsigned char *bytes, int len, int loc, int set);
977  const ASN1_OBJECT *obj, int type,const unsigned char *bytes,
978  int len);
980  const ASN1_OBJECT *obj);
982  const unsigned char *bytes, int len);
985 
988  int nid, int lastpos);
990  const ASN1_OBJECT *obj,int lastpos);
992  int crit, int lastpos);
997 
999 OPENSSL_EXPORT int X509_get_ext_by_NID(X509 *x, int nid, int lastpos);
1000 OPENSSL_EXPORT int X509_get_ext_by_OBJ(X509 *x,ASN1_OBJECT *obj,int lastpos);
1001 OPENSSL_EXPORT int X509_get_ext_by_critical(X509 *x, int crit, int lastpos);
1004 OPENSSL_EXPORT int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc);
1005 OPENSSL_EXPORT void * X509_get_ext_d2i(X509 *x, int nid, int *crit, int *idx);
1006 OPENSSL_EXPORT int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit,
1007  unsigned long flags);
1008 
1010 OPENSSL_EXPORT int X509_CRL_get_ext_by_NID(X509_CRL *x, int nid, int lastpos);
1012 OPENSSL_EXPORT int X509_CRL_get_ext_by_critical(X509_CRL *x, int crit, int lastpos);
1016 OPENSSL_EXPORT void * X509_CRL_get_ext_d2i(X509_CRL *x, int nid, int *crit, int *idx);
1017 OPENSSL_EXPORT int X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit,
1018  unsigned long flags);
1019 
1023 OPENSSL_EXPORT int X509_REVOKED_get_ext_by_critical(X509_REVOKED *x, int crit, int lastpos);
1027 OPENSSL_EXPORT void * X509_REVOKED_get_ext_d2i(X509_REVOKED *x, int nid, int *crit, int *idx);
1028 OPENSSL_EXPORT int X509_REVOKED_add1_ext_i2d(X509_REVOKED *x, int nid, void *value, int crit,
1029  unsigned long flags);
1030 
1032  int nid, int crit, ASN1_OCTET_STRING *data);
1034  const ASN1_OBJECT *obj,int crit,ASN1_OCTET_STRING *data);
1042 
1045  int lastpos);
1047  int lastpos);
1052 OPENSSL_EXPORT STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE) **x,
1053  const ASN1_OBJECT *obj, int type,
1054  const unsigned char *bytes, int len);
1055 OPENSSL_EXPORT STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE) **x,
1056  int nid, int type,
1057  const unsigned char *bytes, int len);
1058 OPENSSL_EXPORT STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE) **x,
1059  const char *attrname, int type,
1060  const unsigned char *bytes, int len);
1062  ASN1_OBJECT *obj, int lastpos, int type);
1064  int atrtype, const void *data, int len);
1066  const ASN1_OBJECT *obj, int atrtype, const void *data, int len);
1068  const char *atrname, int type, const unsigned char *bytes, int len);
1070 OPENSSL_EXPORT int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype, const void *data, int len);
1072  int atrtype, void *data);
1076 
1079  int lastpos);
1081  int lastpos);
1086  const ASN1_OBJECT *obj, int type,
1087  const unsigned char *bytes, int len);
1089  int nid, int type,
1090  const unsigned char *bytes, int len);
1092  const char *attrname, int type,
1093  const unsigned char *bytes, int len);
1094 
1096 
1097 /* lookup a cert from a X509 STACK */
1099  ASN1_INTEGER *serial);
1101 
1105 
1106 OPENSSL_EXPORT int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,
1107  const unsigned char *salt, int saltlen);
1108 
1110  const unsigned char *salt, int saltlen);
1111 OPENSSL_EXPORT X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,
1112  unsigned char *salt, int saltlen);
1113 OPENSSL_EXPORT X509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,
1114  unsigned char *salt, int saltlen,
1115  unsigned char *aiv, int prf_nid);
1116 
1117 OPENSSL_EXPORT X509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen,
1118  int prf_nid, int keylen);
1119 
1120 /* PKCS#8 utilities */
1121 
1123 
1128 
1130  int version, int ptype, void *pval,
1131  unsigned char *penc, int penclen);
1133  const unsigned char **pk, int *ppklen,
1134  X509_ALGOR **pa,
1135  PKCS8_PRIV_KEY_INFO *p8);
1136 
1138  int ptype, void *pval,
1139  unsigned char *penc, int penclen);
1141  const unsigned char **pk, int *ppklen,
1142  X509_ALGOR **pa,
1143  X509_PUBKEY *pub);
1144 
1145 OPENSSL_EXPORT int X509_check_trust(X509 *x, int id, int flags);
1149 OPENSSL_EXPORT int X509_TRUST_add(int id, int flags, int (*ck)(X509_TRUST *, X509 *, int),
1150  char *name, int arg1, void *arg2);
1155 
1156 
1157 typedef struct rsa_pss_params_st {
1162 } RSA_PSS_PARAMS;
1163 
1165 
1166 
1167 /* PKCS7_get_certificates parses a PKCS#7, SignedData structure from |cbs| and
1168  * appends the included certificates to |out_certs|. It returns one on success
1169  * and zero on error. */
1170 OPENSSL_EXPORT int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs);
1171 
1172 /* PKCS7_bundle_certificates appends a PKCS#7, SignedData structure containing
1173  * |certs| to |out|. It returns one on success and zero on error. */
1175  CBB *out, const STACK_OF(X509) *certs);
1176 
1177 /* PKCS7_get_CRLs parses a PKCS#7, SignedData structure from |cbs| and appends
1178  * the included CRLs to |out_crls|. It returns one on success and zero on
1179  * error. */
1181 
1182 /* PKCS7_bundle_CRLs appends a PKCS#7, SignedData structure containing
1183  * |crls| to |out|. It returns one on success and zero on error. */
1184 OPENSSL_EXPORT int PKCS7_bundle_CRLs(CBB *out, const STACK_OF(X509_CRL) *crls);
1185 
1186 /* PKCS7_get_PEM_certificates reads a PEM-encoded, PKCS#7, SignedData structure
1187  * from |pem_bio| and appends the included certificates to |out_certs|. It
1188  * returns one on success and zero on error. */
1190  BIO *pem_bio);
1191 
1192 /* PKCS7_get_PEM_CRLs reads a PEM-encoded, PKCS#7, SignedData structure from
1193  * |pem_bio| and appends the included CRLs to |out_crls|. It returns one on
1194  * success and zero on error. */
1196  BIO *pem_bio);
1197 
1198 /* EVP_PK values indicate the algorithm of the public key in a certificate. */
1199 
1200 #define EVP_PK_RSA 0x0001
1201 #define EVP_PK_DSA 0x0002
1202 #define EVP_PK_DH 0x0004
1203 #define EVP_PK_EC 0x0008
1204 
1205 /* EVP_PKS values indicate the algorithm used to sign a certificate. */
1206 
1207 #define EVP_PKS_RSA 0x0100
1208 #define EVP_PKS_DSA 0x0200
1209 #define EVP_PKS_EC 0x0400
1210 
1211 /* EVP_PKT values are flags that define what public-key operations can be
1212  * performed with the public key from a certificate. */
1213 
1214 /* EVP_PKT_SIGN indicates that the public key can be used for signing. */
1215 #define EVP_PKT_SIGN 0x0010
1216 /* EVP_PKT_ENC indicates that a session key can be encrypted to the public
1217  * key. */
1218 #define EVP_PKT_ENC 0x0020
1219 /* EVP_PKT_EXCH indicates that key-agreement can be performed. */
1220 #define EVP_PKT_EXCH 0x0040
1221 /* EVP_PKT_EXP indicates that key is weak (i.e. "export"). */
1222 #define EVP_PKT_EXP 0x1000
1223 
1224 
1225 #ifdef __cplusplus
1226 }
1227 
1228 extern "C++" {
1229 
1230 namespace bssl {
1231 
1232 BORINGSSL_MAKE_STACK_DELETER(X509, X509_free)
1233 BORINGSSL_MAKE_STACK_DELETER(X509_CRL, X509_CRL_free)
1234 BORINGSSL_MAKE_STACK_DELETER(X509_EXTENSION, X509_EXTENSION_free)
1235 BORINGSSL_MAKE_STACK_DELETER(X509_NAME, X509_NAME_free)
1236 
1237 BORINGSSL_MAKE_DELETER(NETSCAPE_SPKI, NETSCAPE_SPKI_free)
1238 BORINGSSL_MAKE_DELETER(X509, X509_free)
1239 BORINGSSL_MAKE_DELETER(X509_ALGOR, X509_ALGOR_free)
1240 BORINGSSL_MAKE_DELETER(X509_CRL, X509_CRL_free)
1241 BORINGSSL_MAKE_DELETER(X509_CRL_METHOD, X509_CRL_METHOD_free)
1242 BORINGSSL_MAKE_DELETER(X509_EXTENSION, X509_EXTENSION_free)
1243 BORINGSSL_MAKE_DELETER(X509_INFO, X509_INFO_free)
1244 BORINGSSL_MAKE_DELETER(X509_LOOKUP, X509_LOOKUP_free)
1245 BORINGSSL_MAKE_DELETER(X509_NAME, X509_NAME_free)
1246 BORINGSSL_MAKE_DELETER(X509_NAME_ENTRY, X509_NAME_ENTRY_free)
1247 BORINGSSL_MAKE_DELETER(X509_PKEY, X509_PKEY_free)
1248 BORINGSSL_MAKE_DELETER(X509_POLICY_TREE, X509_policy_tree_free)
1249 BORINGSSL_MAKE_DELETER(X509_REQ, X509_REQ_free)
1250 BORINGSSL_MAKE_DELETER(X509_REVOKED, X509_REVOKED_free)
1251 BORINGSSL_MAKE_DELETER(X509_SIG, X509_SIG_free)
1252 BORINGSSL_MAKE_DELETER(X509_STORE, X509_STORE_free)
1253 BORINGSSL_MAKE_DELETER(X509_STORE_CTX, X509_STORE_CTX_free)
1254 BORINGSSL_MAKE_DELETER(X509_VERIFY_PARAM, X509_VERIFY_PARAM_free)
1255 
1256 } // namespace bssl
1257 
1258 } /* extern C++ */
1259 
1260 #endif
1261 
1262 #define X509_R_AKID_MISMATCH 100
1263 #define X509_R_BAD_PKCS7_VERSION 101
1264 #define X509_R_BAD_X509_FILETYPE 102
1265 #define X509_R_BASE64_DECODE_ERROR 103
1266 #define X509_R_CANT_CHECK_DH_KEY 104
1267 #define X509_R_CERT_ALREADY_IN_HASH_TABLE 105
1268 #define X509_R_CRL_ALREADY_DELTA 106
1269 #define X509_R_CRL_VERIFY_FAILURE 107
1270 #define X509_R_IDP_MISMATCH 108
1271 #define X509_R_INVALID_BIT_STRING_BITS_LEFT 109
1272 #define X509_R_INVALID_DIRECTORY 110
1273 #define X509_R_INVALID_FIELD_NAME 111
1274 #define X509_R_INVALID_PSS_PARAMETERS 112
1275 #define X509_R_INVALID_TRUST 113
1276 #define X509_R_ISSUER_MISMATCH 114
1277 #define X509_R_KEY_TYPE_MISMATCH 115
1278 #define X509_R_KEY_VALUES_MISMATCH 116
1279 #define X509_R_LOADING_CERT_DIR 117
1280 #define X509_R_LOADING_DEFAULTS 118
1281 #define X509_R_NEWER_CRL_NOT_NEWER 119
1282 #define X509_R_NOT_PKCS7_SIGNED_DATA 120
1283 #define X509_R_NO_CERTIFICATES_INCLUDED 121
1284 #define X509_R_NO_CERT_SET_FOR_US_TO_VERIFY 122
1285 #define X509_R_NO_CRLS_INCLUDED 123
1286 #define X509_R_NO_CRL_NUMBER 124
1287 #define X509_R_PUBLIC_KEY_DECODE_ERROR 125
1288 #define X509_R_PUBLIC_KEY_ENCODE_ERROR 126
1289 #define X509_R_SHOULD_RETRY 127
1290 #define X509_R_UNKNOWN_KEY_TYPE 128
1291 #define X509_R_UNKNOWN_NID 129
1292 #define X509_R_UNKNOWN_PURPOSE_ID 130
1293 #define X509_R_UNKNOWN_TRUST_ID 131
1294 #define X509_R_UNSUPPORTED_ALGORITHM 132
1295 #define X509_R_WRONG_LOOKUP_TYPE 133
1296 #define X509_R_WRONG_TYPE 134
1297 #define X509_R_NAME_TOO_LONG 135
1298 
1299 #endif
OPENSSL_EXPORT const char * attrname
Definition: x509.h:1059
OPENSSL_EXPORT void X509_reject_clear(X509 *x)
OPENSSL_EXPORT int X509_CRL_verify(X509_CRL *a, EVP_PKEY *r)
OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO * PKCS8_set_broken(PKCS8_PRIV_KEY_INFO *p8, int broken)
OPENSSL_EXPORT void X509_ALGOR_get0(ASN1_OBJECT **paobj, int *pptype, void **ppval, X509_ALGOR *algor)
ASN1_TYPE * salt
Definition: x509.h:524
OPENSSL_EXPORT int X509_get_ext_by_OBJ(X509 *x, ASN1_OBJECT *obj, int lastpos)
Definition: x509_ext.c:121
OPENSSL_EXPORT int X509_REQ_set_version(X509_REQ *x, long version)
Definition: x509rset.c:62
Definition: DiagnosticsBase.cpp:11
OPENSSL_EXPORT X509_EXTENSION * X509_EXTENSION_dup(X509_EXTENSION *ex)
ASN1_INTEGER * trailerField
Definition: x509.h:1161
OPENSSL_EXPORT int i2d_RSAPublicKey_bio(BIO *bp, RSA *rsa)
Definition: x_all.c:255
OPENSSL_EXPORT int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
Definition: x_all.c:80
int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from, void **from_d, int index, long argl, void *argp)
Definition: ex_data.h:188
OPENSSL_EXPORT X509_REVOKED * X509_REVOKED_dup(X509_REVOKED *rev)
#define DECLARE_ASN1_SET_OF(type)
Definition: asn1.h:156
OPENSSL_EXPORT int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey)
Definition: x_all.c:447
ASN1_TIME * revocationDate
Definition: x509.h:393
OPENSSL_EXPORT X509_ALGOR * X509_ALGOR_dup(X509_ALGOR *xn)
OPENSSL_EXPORT EC_KEY * d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp, long length)
Definition: x_pubkey.c:300
X509_CERT_AUX * aux
Definition: x509.h:263
OPENSSL_EXPORT int X509_CRL_sign_ctx(X509_CRL *x, EVP_MD_CTX *ctx)
Definition: x_all.c:115
X509 * forward
Definition: x509.h:283
OPENSSL_EXPORT ASN1_OCTET_STRING * X509_EXTENSION_get_data(X509_EXTENSION *ne)
Definition: x509_v3.c:264
OPENSSL_EXPORT X509_ATTRIBUTE * X509_REQ_delete_attr(X509_REQ *req, int loc)
Definition: x509_req.c:282
OPENSSL_EXPORT X509_EXTENSION * X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex, const ASN1_OBJECT *obj, int crit, ASN1_OCTET_STRING *data)
Definition: x509_v3.c:198
OPENSSL_EXPORT int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflag, unsigned long cflag)
Definition: t_x509.c:98
Definition: x509.h:518
OPENSSL_EXPORT int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey)
Definition: x_all.c:326
Definition: x509.h:390
EGLStreamKHR EGLint EGLint EGLint size
Definition: eglext.h:984
OPENSSL_EXPORT int ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data, unsigned char *md, unsigned int *len)
Definition: a_digest.c:64
Definition: x509v3.h:245
OPENSSL_EXPORT ASN1_OBJECT * X509_NAME_ENTRY_get_object(X509_NAME_ENTRY *ne)
Definition: x509name.c:374
OPENSSL_EXPORT X509_SIG * d2i_PKCS8_bio(BIO *bp, X509_SIG **p8)
Definition: x_all.c:401
#define SHA_DIGEST_LENGTH
Definition: sha.h:74
OPENSSL_EXPORT int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey)
Definition: x509rset.c:76
int(* a2i)(void)
Definition: x509.h:108
Definition: x509.h:533
Definition: x509v3.h:170
OPENSSL_EXPORT X509_EXTENSION * X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc)
Definition: x509_v3.c:123
OPENSSL_EXPORT X509_NAME * nm
Definition: x509_vfy.h:444
OPENSSL_EXPORT int X509_NAME_entry_count(X509_NAME *name)
Definition: x509name.c:94
OPENSSL_EXPORT int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc)
Definition: x509_ext.c:106
ASN1_BIT_STRING * signature
Definition: x509.h:492
Definition: x509.h:443
const FieldDescriptor * field
Definition: parser_unittest.cc:2279
OPENSSL_EXPORT DSA * d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa)
Definition: x_all.c:267
OPENSSL_EXPORT int i2d_X509_fp(FILE *fp, X509 *x509)
Definition: x_all.c:141
OPENSSL_EXPORT X509_NAME_ENTRY * X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne, const char *field, int type, const unsigned char *bytes, int len)
Definition: x509name.c:279
Definition: x509.h:116
OPENSSL_EXPORT int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey)
Definition: x_all.c:346
X509_NAME * subject
Definition: x509.h:218
OPENSSL_EXPORT int X509_REQ_add1_attr_by_NID(X509_REQ *req, int nid, int type, const unsigned char *bytes, int len)
Definition: x509_req.c:304
OPENSSL_EXPORT EVP_PKEY * d2i_PUBKEY(EVP_PKEY **a, const unsigned char **pp, long length)
Definition: x_pubkey.c:188
OPENSSL_EXPORT const int * X509_REQ_get_extension_nids(void)
Definition: x509_req.c:173
OPENSSL_EXPORT int X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm)
Definition: x509cset.c:82
OPENSSL_EXPORT int X509_print_ex_fp(FILE *bp, X509 *x, unsigned long nmflag, unsigned long cflag)
Definition: t_x509.c:71
X509_ALGOR * encryption
Definition: x509.h:520
OPENSSL_EXPORT X509_NAME * X509_NAME_dup(X509_NAME *xn)
OPENSSL_EXPORT int X509_ocspid_print(BIO *bp, X509 *x)
Definition: t_x509.c:251
OPENSSL_EXPORT int NETSCAPE_SPKI_verify(NETSCAPE_SPKI *a, EVP_PKEY *r)
Definition: x_all.c:129
OPENSSL_EXPORT int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey)
Definition: x_all.c:437
ASN1_OCTET_STRING * enc_pkey
Definition: x509.h:448
Definition: x509.h:463
OPENSSL_EXPORT int X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev)
OPENSSL_EXPORT int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit, unsigned long flags)
Definition: x509_ext.c:152
OPENSSL_EXPORT EVP_PKEY * d2i_PrivateKey_bio(BIO *bp, EVP_PKEY **a)
Definition: x_all.c:488
ASN1_ENCODING enc
Definition: x509.h:223
char * enc_data
Definition: x509.h:471
char * name
Definition: x509.h:247
OPENSSL_EXPORT int X509_EXTENSION_get_critical(X509_EXTENSION *ex)
Definition: x509_v3.c:271
OPENSSL_EXPORT void X509_CRL_set_default_method(const X509_CRL_METHOD *meth)
Definition: x_crl.c:493
OPENSSL_EXPORT int i2d_EC_PUBKEY(const EC_KEY *a, unsigned char **pp)
Definition: x_pubkey.c:321
OPENSSL_EXPORT int X509_REQ_verify(X509_REQ *a, EVP_PKEY *r)
Definition: x_all.c:74
OPENSSL_EXPORT X509 * d2i_X509_AUX(X509 **a, const unsigned char **pp, long length)
void X509_policy_tree_free(X509_POLICY_TREE *tree)
Definition: pcy_tree.c:694
OPENSSL_EXPORT int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag, unsigned long cflag)
Definition: t_req.c:80
void X509_STORE_CTX_free(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2233
OPENSSL_EXPORT int i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa)
Definition: x_all.c:282
X509_PKEY * x_pkey
Definition: x509.h:467
OPENSSL_EXPORT const char * X509_get_default_cert_dir_env(void)
Definition: x509_def.c:90
Definition: asn1.h:517
CRYPTO_refcount_t references
Definition: x509.h:246
OPENSSL_EXPORT X509 * X509_dup(X509 *x509)
X509_ALGOR * enc_algor
Definition: x509.h:447
OPENSSL_EXPORT int X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial)
Definition: x509cset.c:155
OPENSSL_EXPORT int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b)
Definition: x509_cmp.c:70
OPENSSL_EXPORT void X509_REQ_set_extension_nids(const int *nids)
Definition: x509_req.c:178
Definition: x509.h:129
EVP_PKEY * dec_pkey
Definition: x509.h:451
OPENSSL_EXPORT int X509_NAME_digest(const X509_NAME *data, const EVP_MD *type, unsigned char *md, unsigned int *len)
Definition: x_all.c:382
OPENSSL_EXPORT X509_CRL * d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl)
Definition: x_all.c:158
OPENSSL_EXPORT int X509_CERT_AUX_print(BIO *bp, X509_CERT_AUX *x, int indent)
Definition: t_x509a.c:65
OPENSSL_EXPORT ASN1_TIME * X509_gmtime_adj(ASN1_TIME *s, long adj)
Definition: x509_vfy.c:1930
int trust
Definition: x509.h:272
NAME_CONSTRAINTS * nc
Definition: x509.h:261
OPENSSL_EXPORT int X509_get_ext_by_critical(X509 *x, int crit, int lastpos)
Definition: x509_ext.c:126
int canon_enclen
Definition: x509.h:158
OPENSSL_EXPORT int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, const unsigned char *bytes, int len)
Definition: x509name.c:349
long ex_pathlen
Definition: x509.h:250
OPENSSL_EXPORT unsigned char * X509_alias_get0(X509 *x, int *len)
OPENSSL_EXPORT unsigned long X509_issuer_name_hash(X509 *a)
Definition: x509_cmp.c:136
OPENSSL_EXPORT int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x)
Definition: x509_v3.c:65
OPENSSL_EXPORT const ASN1_OBJECT int const unsigned char * bytes
Definition: x509.h:1053
OPENSSL_EXPORT int EVP_PKEY_add1_attr_by_OBJ(EVP_PKEY *key, const ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len)
OPENSSL_EXPORT X509_ATTRIBUTE * X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr, const ASN1_OBJECT *obj, int atrtype, const void *data, int len)
Definition: x509_att.c:230
OPENSSL_EXPORT int X509_set_ex_data(X509 *r, int idx, void *arg)
OPENSSL_EXPORT void * X509_get_ext_d2i(X509 *x, int nid, int *crit, int *idx)
Definition: x509_ext.c:147
OPENSSL_EXPORT int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr)
Definition: x509_req.c:287
Definition: internal.h:67
OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO * d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO **p8inf)
Definition: x_all.c:457
uint8_t uint8_t CBS * cbs
Definition: internal.h:759
OPENSSL_EXPORT int X509_get_ext_count(X509 *x)
Definition: x509_ext.c:111
Definition: x509v3.h:353
OPENSSL_EXPORT int EVP_PKEY_get_attr_count(const EVP_PKEY *key)
OPENSSL_EXPORT int X509_issuer_name_cmp(const X509 *a, const X509 *b)
Definition: x509_cmp.c:111
Definition: asn1.h:245
int(* i2a)(void)
Definition: x509.h:109
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: gl2ext.h:134
Definition: x509.h:203
OPENSSL_EXPORT int X509_ATTRIBUTE_count(X509_ATTRIBUTE *attr)
Definition: x509_att.c:341
int reason
Definition: x509.h:398
OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO * EVP_PKEY2PKCS8_broken(EVP_PKEY *pkey, int broken)
X509_CRL * crl
Definition: x509.h:466
bool t
Definition: UpdateContents.py:37
uint32_t CRYPTO_refcount_t
Definition: thread.h:101
OPENSSL_EXPORT int X509_set_subject_name(X509 *x, X509_NAME *name)
Definition: x509_set.c:103
int arg1
Definition: x509.h:276
OPENSSL_EXPORT int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, const unsigned char *bytes, int len, int loc, int set)
Definition: x509name.c:204
OPENSSL_EXPORT X509_EXTENSION * X509_get_ext(X509 *x, int loc)
Definition: x509_ext.c:132
Definition: asn1t.h:514
OPENSSL_EXPORT int X509_CRL_get_ext_by_NID(X509_CRL *x, int nid, int lastpos)
Definition: x509_ext.c:70
int key_free
Definition: x509.h:456
Definition: dsa.h:390
OPENSSL_EXPORT int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey)
Definition: x509spki.c:64
unsigned long ex_kusage
Definition: x509.h:253
OPENSSL_EXPORT int X509_REVOKED_get_ext_by_OBJ(X509_REVOKED *x, ASN1_OBJECT *obj, int lastpos)
Definition: x509_ext.c:169
OPENSSL_EXPORT int X509_subject_name_cmp(const X509 *a, const X509 *b)
Definition: x509_cmp.c:116
int enc_len
Definition: x509.h:470
typedef STACK_OF(X509_ALGOR) X509_ALGORS
int size
Definition: x509.h:140
OPENSSL_EXPORT int X509_CRL_get_ext_count(X509_CRL *x)
Definition: x509_ext.c:65
X509_CINF * cert_info
Definition: x509.h:243
OPENSSL_EXPORT int X509_REVOKED_get_ext_by_critical(X509_REVOKED *x, int crit, int lastpos)
Definition: x509_ext.c:175
Definition: rsa.h:598
OPENSSL_EXPORT int X509_CRL_set_version(X509_CRL *x, long version)
Definition: x509cset.c:64
Definition: x509.h:135
OPENSSL_EXPORT int X509_TRUST_get_trust(X509_TRUST *xp)
Definition: x509_trs.c:271
Definition: x509.h:122
ASN1_INTEGER * serialNumber
Definition: x509.h:214
OPENSSL_EXPORT X509 * d2i_X509_bio(BIO *bp, X509 **x509)
Definition: x_all.c:147
const GLfloat * m
Definition: gl2ext.h:850
OPENSSL_EXPORT X509_EXTENSION * X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc)
Definition: x509_v3.c:131
OPENSSL_EXPORT unsigned long X509_subject_name_hash_old(X509 *x)
Definition: x509_cmp.c:161
X509_ALGOR * sig_algor
Definition: x509.h:491
OPENSSL_EXPORT X509 * X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey)
Definition: x509_r2x.c:66
int sequence
Definition: x509.h:399
OPENSSL_EXPORT X509_ATTRIBUTE * X509_ATTRIBUTE_create(int nid, int atrtype, void *value)
OPENSSL_EXPORT void * X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x, ASN1_OBJECT *obj, int lastpos, int type)
Definition: x509_att.c:200
X509_ALGOR * prf
Definition: x509.h:527
OPENSSL_EXPORT int i2d_PUBKEY(const EVP_PKEY *a, unsigned char **pp)
Definition: x_pubkey.c:206
OPENSSL_EXPORT X509_ALGOR * PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter, unsigned char *salt, int saltlen)
OPENSSL_EXPORT EC_KEY * d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey)
Definition: x_all.c:311
int single
Definition: x509.h:181
OPENSSL_EXPORT unsigned long X509_issuer_and_serial_hash(X509 *a)
Definition: x509_cmp.c:83
int broken
Definition: x509.h:535
int FILE
Definition: antglob.py:49
OPENSSL_EXPORT void X509_TRUST_cleanup(void)
Definition: x509_trs.c:252
boolean attributes
Definition: MutationObserver.idl:43
X509_REQ_INFO * req_info
Definition: x509.h:205
OPENSSL_EXPORT X509_ATTRIBUTE * X509_ATTRIBUTE_dup(X509_ATTRIBUTE *xa)
int key_length
Definition: x509.h:454
ASN1_OBJECT * object
Definition: x509.h:137
OPENSSL_EXPORT int X509_up_ref(X509 *x)
ASN1_TIME * lastUpdate
Definition: x509.h:410
Definition: x509.h:417
OPENSSL_EXPORT int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b)
Definition: x509_cmp.c:121
OPENSSL_EXPORT ASN1_TIME * X509_time_adj_ex(ASN1_TIME *s, int offset_day, long offset_sec, time_t *t)
Definition: x509_vfy.c:1940
OPENSSL_EXPORT const ASN1_OBJECT * obj
Definition: x509.h:1053
uint16_t version
Definition: ssl_lib.c:2731
OPENSSL_EXPORT RSA * d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa)
Definition: x_all.c:202
unsigned long ex_nscert
Definition: x509.h:255
OPENSSL_EXPORT int X509_CRL_print_fp(FILE *bp, X509_CRL *x)
Definition: t_crl.c:65
ASN1_INTEGER * keylength
Definition: x509.h:526
OPENSSL_EXPORT int i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa)
Definition: x_all.c:229
Definition: x509_vfy.h:163
OPENSSL_EXPORT int i2d_PKCS8_bio(BIO *bp, X509_SIG *p8)
Definition: x_all.c:406
OPENSSL_EXPORT int X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts, int nid)
Definition: x509_req.c:217
OPENSSL_EXPORT int X509_get_ex_new_index(long argl, void *argp, CRYPTO_EX_unused *unused, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func)
OPENSSL_EXPORT int i2d_DSA_PUBKEY_bio(BIO *bp, DSA *dsa)
Definition: x_all.c:303
Definition: x509.h:488
OPENSSL_EXPORT int X509_digest(const X509 *data, const EVP_MD *type, unsigned char *md, unsigned int *len)
Definition: x_all.c:361
OPENSSL_EXPORT ASN1_OBJECT * X509_ATTRIBUTE_get0_object(X509_ATTRIBUTE *attr)
Definition: x509_att.c:350
OPENSSL_EXPORT ASN1_TYPE * X509_ATTRIBUTE_get0_type(X509_ATTRIBUTE *attr, int idx)
Definition: x509_att.c:371
Definition: pcy_int.h:115
OPENSSL_EXPORT void * X509_ATTRIBUTE_get0_data(X509_ATTRIBUTE *attr, int idx, int atrtype, void *data)
Definition: x509_att.c:357
OPENSSL_EXPORT int X509_get_signature_nid(const X509 *x)
OPENSSL_EXPORT int X509_REQ_get_attr_by_OBJ(const X509_REQ *req, ASN1_OBJECT *obj, int lastpos)
Definition: x509_req.c:271
OPENSSL_EXPORT X509_REQ * d2i_X509_REQ_fp(FILE *fp, X509_REQ **req)
Definition: x_all.c:180
OPENSSL_EXPORT int X509_ATTRIBUTE_set1_object(X509_ATTRIBUTE *attr, const ASN1_OBJECT *obj)
Definition: x509_att.c:278
OPENSSL_EXPORT int X509_add1_reject_object(X509 *x, ASN1_OBJECT *obj)
ASN1_TIME * notBefore
Definition: x509.h:118
OPENSSL_EXPORT X509_NAME_ENTRY * X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne)
OPENSSL_EXPORT X509_EXTENSION * X509_REVOKED_delete_ext(X509_REVOKED *x, int loc)
Definition: x509_ext.c:185
ASN1_OBJECT * type
Definition: x509.h:498
OPENSSL_EXPORT X509_CRL * d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl)
Definition: x_all.c:169
OPENSSL_EXPORT int X509_CRL_get0_by_serial(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *serial)
OPENSSL_EXPORT int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, unsigned char *bytes, int len, int loc, int set)
Definition: x509name.c:190
OPENSSL_EXPORT int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial)
Definition: x509_set.c:79
OPENSSL_EXPORT int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs)
Definition: pkcs7.c:92
OPENSSL_EXPORT int X509_REQ_add1_attr_by_txt(X509_REQ *req, const char *attrname, int type, const unsigned char *bytes, int len)
Definition: x509_req.c:314
OPENSSL_EXPORT EVP_PKEY * d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a)
Definition: x_all.c:452
OPENSSL_EXPORT X509_ATTRIBUTE * EVP_PKEY_get_attr(const EVP_PKEY *key, int loc)
OPENSSL_EXPORT X509_ALGOR * PKCS5_pbe_set(int alg, int iter, const unsigned char *salt, int saltlen)
ASN1_TYPE * pkey
Definition: x509.h:543
int nid
Definition: x509.h:107
OPENSSL_EXPORT int X509_cmp(const X509 *a, const X509 *b)
Definition: x509_cmp.c:174
OPENSSL_EXPORT int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc)
Definition: x509_ext.c:142
Definition: internal.h:232
OPENSSL_EXPORT EVP_PKEY * X509_get_pubkey(X509 *x)
Definition: x509_cmp.c:301
OPENSSL_EXPORT int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype, const void *data, int len)
Definition: x509_att.c:287
OPENSSL_EXPORT int X509_CRL_up_ref(X509_CRL *crl)
Definition: x509cset.c:132
void
Definition: AVFoundationCFSoftLinking.h:81
OPENSSL_EXPORT DSA * d2i_DSA_PUBKEY_bio(BIO *bp, DSA **dsa)
Definition: x_all.c:298
ASN1_STRING * value
Definition: x509.h:138
ASN1_OCTET_STRING * skid
Definition: x509.h:256
OPENSSL_EXPORT int i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl)
Definition: x_all.c:163
EGLStreamKHR EGLint n
Definition: eglext.h:984
OPENSSL_EXPORT int X509_NAME_add_entry(X509_NAME *name, X509_NAME_ENTRY *ne, int loc, int set)
Definition: x509name.c:222
int
Definition: runtests.py:53
OPENSSL_EXPORT void X509_CRL_set_meth_data(X509_CRL *crl, void *dat)
Definition: x_crl.c:529
OPENSSL_EXPORT int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *algor1, ASN1_BIT_STRING *signature, void *data, EVP_PKEY *pkey)
Definition: a_verify.c:73
EVP_PKEY * pkey
Definition: x509.h:126
ASN1_ENCODING enc
Definition: x509.h:414
char * key_data
Definition: x509.h:455
OPENSSL_EXPORT int X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm)
Definition: x509cset.c:99
Definition: asn1.h:199
OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO * d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO **p8inf)
Definition: x_all.c:412
struct rsa_pss_params_st RSA_PSS_PARAMS
Definition: x509v3.h:257
Definition: cipher.h:496
OPENSSL_EXPORT int X509_CRL_digest(const X509_CRL *data, const EVP_MD *type, unsigned char *md, unsigned int *len)
Definition: x_all.c:368
int flags
Definition: x509.h:273
OPENSSL_EXPORT int X509_signature_print(BIO *bp, X509_ALGOR *alg, ASN1_STRING *sig)
Definition: t_x509.c:301
OPENSSL_EXPORT DSA * d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa)
Definition: x_all.c:288
OPENSSL_EXPORT int PKCS7_bundle_CRLs(CBB *out, const STACK_OF(X509_CRL) *crls)
Definition: pkcs7.c:351
Definition: WebCryptoAPI.idl:40
OPENSSL_EXPORT X509_SIG * d2i_PKCS8_fp(FILE *fp, X509_SIG **p8)
Definition: x_all.c:390
OPENSSL_EXPORT int X509_check_trust(X509 *x, int id, int flags)
Definition: x509_trs.c:114
OPENSSL_EXPORT int X509_CRL_check_suiteb(X509_CRL *crl, EVP_PKEY *pk, unsigned long flags)
Definition: x509_cmp.c:451
Definition: evp.h:730
X509_NAME * issuer
Definition: x509.h:216
OPENSSL_EXPORT const ASN1_OBJECT int const unsigned char int len
Definition: x509.h:1053
OPENSSL_EXPORT X509_EXTENSION int loc
Definition: x509.h:996
int ret
Definition: test_unit_dft.c:69
Definition: bytestring.h:286
int flags
Definition: x509.h:424
void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, int index, long argl, void *argp)
Definition: ex_data.h:176
void X509_LOOKUP_free(X509_LOOKUP *ctx)
Definition: x509_lu.c:89
OPENSSL_EXPORT X509_ALGOR * PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen, int prf_nid, int keylen)
OPENSSL_EXPORT X509_EXTENSION * X509_REVOKED_get_ext(X509_REVOKED *x, int loc)
Definition: x509_ext.c:180
OPENSSL_EXPORT int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey)
Definition: x_all.c:336
OPENSSL_EXPORT int ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2, ASN1_BIT_STRING *signature, void *data, EVP_PKEY *pkey, const EVP_MD *type)
Definition: a_sign.c:67
EGLSurface EGLint x
Definition: eglext.h:950
OPENSSL_EXPORT int EVP_PKEY_add1_attr_by_NID(EVP_PKEY *key, int nid, int type, const unsigned char *bytes, int len)
int version
Definition: x509.h:445
OPENSSL_EXPORT X509_REQ * d2i_X509_REQ_bio(BIO *bp, X509_REQ **req)
Definition: x_all.c:191
OPENSSL_EXPORT int X509_cmp_current_time(const ASN1_TIME *s)
Definition: x509_vfy.c:1805
OPENSSL_EXPORT int X509_CRL_get_ext_by_OBJ(X509_CRL *x, ASN1_OBJECT *obj, int lastpos)
Definition: x509_ext.c:75
Definition: x509_vfy.h:215
OPENSSL_EXPORT X509_EXTENSION * X509_CRL_get_ext(X509_CRL *x, int loc)
Definition: x509_ext.c:85
OPENSSL_EXPORT int i2d_X509_REQ_bio(BIO *bp, X509_REQ *req)
Definition: x_all.c:196
Definition: x509v3.h:327
int int * out
Definition: gcc-loops.cpp:206
#define OPENSSL_EXPORT
Definition: base.h:160
OPENSSL_EXPORT int i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey)
Definition: x_all.c:483
OPENSSL_EXPORT X509_NAME * X509_get_subject_name(X509 *a)
Definition: x509_cmp.c:146
OPENSSL_EXPORT int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, const ASN1_OBJECT *obj)
Definition: x509name.c:338
ASN1_BIT_STRING * subjectUID
Definition: x509.h:221
OPENSSL_EXPORT int i2d_PKCS8_fp(FILE *fp, X509_SIG *p8)
Definition: x_all.c:395
int ASN1_BOOLEAN
Definition: base.h:192
OPENSSL_EXPORT EVP_PKEY * d2i_PUBKEY_bio(BIO *bp, EVP_PKEY **a)
Definition: x_all.c:498
OPENSSL_EXPORT int i2d_DSA_PUBKEY(const DSA *a, unsigned char **pp)
Definition: x_pubkey.c:282
OPENSSL_EXPORT char * NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *x)
Definition: x509spki.c:110
OPENSSL_EXPORT int X509_check_private_key(X509 *x509, EVP_PKEY *pkey)
Definition: x509_cmp.c:315
OPENSSL_EXPORT X509_ATTRIBUTE * attr
Definition: x509.h:1051
EGLAttrib * value
Definition: eglext.h:120
OPENSSL_EXPORT int X509_REQ_add_extensions(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts)
Definition: x509_req.c:254
X509_PUBKEY * pubkey
Definition: x509.h:198
Definition: x509.h:282
EGLContext ctx
Definition: eglext.h:192
OPENSSL_EXPORT X509 * X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name, ASN1_INTEGER *serial)
Definition: x509_cmp.c:266
OPENSSL_EXPORT int X509_pubkey_digest(const X509 *data, const EVP_MD *type, unsigned char *md, unsigned int *len)
Definition: x_all.c:351
X509_ALGOR * sig_alg
Definition: x509.h:206
X509 * x509
Definition: x509.h:465
Definition: x509.h:105
Definition: bytestring.h:37
ASN1_BIT_STRING * signature
Definition: x509.h:245
OPENSSL_EXPORT X509_ALGOR * PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter, unsigned char *salt, int saltlen, unsigned char *aiv, int prf_nid)
OPENSSL_EXPORT unsigned char * X509_keyid_get0(X509 *x, int *len)
OPENSSL_EXPORT X509_INFO * X509_INFO_new(void)
Definition: x_info.c:64
OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO * EVP_PKEY2PKCS8(EVP_PKEY *pkey)
Definition: pkcs8.c:622
OPENSSL_EXPORT X509_EXTENSION * X509_EXTENSION_create_by_NID(X509_EXTENSION **ex, int nid, int crit, ASN1_OCTET_STRING *data)
Definition: x509_v3.c:182
ASN1_TIME * nextUpdate
Definition: x509.h:411
OPENSSL_EXPORT DSA * d2i_DSA_PUBKEY(DSA **a, const unsigned char **pp, long length)
Definition: x_pubkey.c:261
OPENSSL_EXPORT void * X509_get_ex_data(X509 *r, int idx)
OPENSSL_EXPORT int X509_REVOKED_set_revocationDate(X509_REVOKED *r, ASN1_TIME *tm)
Definition: x509cset.c:138
OPENSSL_EXPORT int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len)
Definition: x509name.c:66
OPENSSL_EXPORT const char * X509_get_default_cert_file(void)
Definition: x509_def.c:85
Definition: x509.h:511
OPENSSL_EXPORT X509_PKEY * X509_PKEY_new(void)
Definition: x_pkey.c:66
OPENSSL_EXPORT int X509_CRL_get0_by_cert(X509_CRL *crl, X509_REVOKED **ret, X509 *x)
OPENSSL_EXPORT RSA * d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa)
Definition: x_all.c:235
Definition: bio.h:810
OPENSSL_EXPORT int X509_TRUST_get_by_id(int id)
Definition: x509_trs.c:151
OPENSSL_EXPORT int ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2, ASN1_BIT_STRING *signature, void *asn, EVP_MD_CTX *ctx)
Definition: a_sign.c:80
OPENSSL_EXPORT X509_ATTRIBUTE * X509_REQ_get_attr(const X509_REQ *req, int loc)
Definition: x509_req.c:277
X509_ALGOR * algor
Definition: x509.h:131
OPENSSL_EXPORT int X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit, unsigned long flags)
Definition: x509_ext.c:100
ASN1_OCTET_STRING * digest
Definition: x509.h:132
OPENSSL_EXPORT int X509_REVOKED_add1_ext_i2d(X509_REVOKED *x, int nid, void *value, int crit, unsigned long flags)
Definition: x509_ext.c:200
Definition: buf.h:71
ASN1_INTEGER * saltLength
Definition: x509.h:1160
OPENSSL_EXPORT EC_KEY * d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey)
Definition: x_all.c:321
OPENSSL_EXPORT NETSCAPE_SPKI * NETSCAPE_SPKI_b64_decode(const char *str, int len)
Definition: x509spki.c:80
#define DECLARE_ASN1_FUNCTIONS(type)
Definition: asn1.h:290
OPENSSL_EXPORT X509_NAME_ENTRY * X509_NAME_get_entry(X509_NAME *name, int loc)
Definition: x509name.c:133
EGLImageKHR EGLint * name
Definition: eglext.h:851
OPENSSL_EXPORT int X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent, unsigned long flags)
Definition: a_strex.c:567
OPENSSL_EXPORT int X509_print(BIO *bp, X509 *x)
Definition: t_x509.c:93
OPENSSL_EXPORT int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit)
Definition: x509_v3.c:237
X509_VAL * validity
Definition: x509.h:217
OPENSSL_EXPORT X509 * d2i_X509_fp(FILE *fp, X509 **x509)
Definition: x_all.c:136
ASN1_BIT_STRING * signature
Definition: x509.h:422
OPENSSL_EXPORT DSA * d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa)
Definition: x_all.c:277
OPENSSL_EXPORT ASN1_STRING * X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne)
Definition: x509name.c:381
OPENSSL_EXPORT EVP_PKEY * d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a)
Definition: x_all.c:442
OPENSSL_EXPORT EC_KEY * d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey)
Definition: x_all.c:331
X509 * reverse
Definition: x509.h:284
OPENSSL_EXPORT unsigned long X509_NAME_hash_old(X509_NAME *x)
Definition: x509_cmp.c:244
OPENSSL_EXPORT int X509_REQ_get_attr_count(const X509_REQ *req)
Definition: x509_req.c:261
OPENSSL_EXPORT int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, unsigned char *bytes, int len, int loc, int set)
Definition: x509name.c:176
ASN1_BIT_STRING * public_key
Definition: x509.h:125
OPENSSL_EXPORT int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf)
Definition: x_all.c:419
X509_NAME * subject
Definition: x509.h:197
OPENSSL_EXPORT RSA * d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa)
Definition: x_all.c:212
AUTHORITY_KEYID * akid
Definition: x509.h:426
Definition: x509_vfy.h:181
OPENSSL_EXPORT unsigned long X509_subject_name_hash(X509 *x)
Definition: x509_cmp.c:156
OPENSSL_EXPORT X509_NAME_ENTRY * X509_NAME_delete_entry(X509_NAME *name, int loc)
Definition: x509name.c:142
OPENSSL_EXPORT int i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO *p8inf)
Definition: x_all.c:464
OPENSSL_EXPORT X509_REQ * X509_REQ_dup(X509_REQ *req)
OPENSSL_EXPORT int i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey)
Definition: x_all.c:493
char * name
Definition: x509.h:275
OPENSSL_EXPORT int X509_print_fp(FILE *bp, X509 *x)
Definition: t_x509.c:87
GLboolean GLboolean GLboolean GLboolean a
Definition: gl2ext.h:306
OPENSSL_EXPORT int X509_keyid_set1(X509 *x, unsigned char *id, int len)
OPENSSL_EXPORT X509_CRL_METHOD * X509_CRL_METHOD_new(int(*crl_init)(X509_CRL *crl), int(*crl_free)(X509_CRL *crl), int(*crl_lookup)(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *ser, X509_NAME *issuer), int(*crl_verify)(X509_CRL *crl, EVP_PKEY *pk))
Definition: x_crl.c:501
OPENSSL_EXPORT int PKCS7_get_PEM_certificates(STACK_OF(X509) *out_certs, BIO *pem_bio)
Definition: pkcs7.c:221
OPENSSL_EXPORT int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name)
Definition: x509cset.c:75
OPENSSL_EXPORT X509_NAME_ENTRY * X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne, const ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len)
Definition: x509name.c:310
OPENSSL_EXPORT int X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent)
Definition: x509.c:135
OPENSSL_EXPORT int X509_set_issuer_name(X509 *x, X509_NAME *name)
Definition: x509_set.c:96
OPENSSL_EXPORT int i2d_X509_REQ_fp(FILE *fp, X509_REQ *req)
Definition: x_all.c:185
OPENSSL_EXPORT int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b)
long ex_pcpathlen
Definition: x509.h:251
OPENSSL_EXPORT const char * X509_get_default_cert_file_env(void)
Definition: x509_def.c:95
OPENSSL_EXPORT void X509_INFO_free(X509_INFO *a)
Definition: x_info.c:84
OPENSSL_EXPORT int X509_TRUST_set(int *t, int trust)
Definition: x509_trs.c:167
OPENSSL_EXPORT void * X509_CRL_get_ext_d2i(X509_CRL *x, int nid, int *crit, int *idx)
Definition: x509_ext.c:95
OPENSSL_EXPORT char * X509_NAME_oneline(X509_NAME *a, char *buf, int size)
Definition: x509_obj.c:74
ASN1_INTEGER * iter
Definition: x509.h:525
OPENSSL_EXPORT int X509_CRL_print(BIO *bp, X509_CRL *x)
Definition: t_crl.c:81
Definition: x509.h:147
ASN1_INTEGER * version
Definition: x509.h:407
OPENSSL_EXPORT X509 * X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name)
Definition: x509_cmp.c:288
OPENSSL_EXPORT EVP_PKEY * X509_REQ_get_pubkey(X509_REQ *req)
Definition: x509_req.c:111
ASN1_INTEGER * base_crl_number
Definition: x509.h:433
OPENSSL_EXPORT int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md)
Definition: x_all.c:123
OPENSSL_EXPORT int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa)
Definition: x_all.c:272
OPENSSL_EXPORT int i2d_RSAPrivateKey_bio(BIO *bp, RSA *rsa)
Definition: x_all.c:240
OPENSSL_EXPORT int X509_REQ_digest(const X509_REQ *data, const EVP_MD *type, unsigned char *md, unsigned int *len)
Definition: x_all.c:375
OPENSSL_EXPORT unsigned long X509_NAME_hash(X509_NAME *x)
Definition: x509_cmp.c:222
OPENSSL_EXPORT X509_ATTRIBUTE * EVP_PKEY_delete_attr(EVP_PKEY *key, int loc)
OPENSSL_EXPORT RSA * d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa)
Definition: x_all.c:250
ASN1_IA5STRING * challenge
Definition: x509.h:485
OPENSSL_EXPORT int i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa)
Definition: x_all.c:224
AUTHORITY_KEYID * akid
Definition: x509.h:257
OPENSSL_EXPORT X509_CRL * X509_CRL_diff(X509_CRL *base, X509_CRL *newer, EVP_PKEY *skey, const EVP_MD *md, unsigned int flags)
Definition: x509_vfy.c:1961
BUF_MEM * bytes
Definition: x509.h:152
OPENSSL_EXPORT int X509_alias_set1(X509 *x, unsigned char *name, int len)
Definition: x509.h:211
OPENSSL_EXPORT const char * X509_get_default_cert_dir(void)
Definition: x509_def.c:80
Definition: asn1.h:228
X509_ALGOR * algor
Definition: x509.h:124
ASN1_INTEGER * iter
Definition: x509.h:513
OPENSSL_EXPORT X509_EXTENSION * ex
Definition: x509.h:996
OPENSSL_EXPORT int X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, const ASN1_OBJECT *obj, int lastpos)
Definition: x509_att.c:81
Definition: safe_conversions.h:16
EGLenum type
Definition: eglext.h:63
OPENSSL_EXPORT int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md)
Definition: x_all.c:108
OPENSSL_EXPORT int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
EGLStreamKHR EGLint EGLint EGLint const void * data
Definition: eglext.h:984
ASN1_BIT_STRING * signature
Definition: x509.h:207
OPENSSL_EXPORT int X509_REQ_print(BIO *bp, X509_REQ *req)
Definition: t_req.c:244
OPENSSL_EXPORT X509_NAME_ENTRY * X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid, int type, unsigned char *bytes, int len)
Definition: x509name.c:298
X509_ALGOR * signature
Definition: x509.h:215
str
Definition: make-dist.py:305
OPENSSL_EXPORT int X509_CRL_sort(X509_CRL *crl)
Definition: x509cset.c:116
OPENSSL_EXPORT int X509_TRUST_add(int id, int flags, int(*ck)(X509_TRUST *, X509 *, int), char *name, int arg1, void *arg2)
Definition: x509_trs.c:177
Definition: digest.h:245
OPENSSL_EXPORT int i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key)
Definition: x_all.c:425
OPENSSL_EXPORT ASN1_TIME * X509_time_adj(ASN1_TIME *s, long adj, time_t *t)
Definition: x509_vfy.c:1935
OPENSSL_EXPORT int(*)(int, X509 *, int) X509_TRUST_set_default(int(*trust)(int, X509 *, int))
Definition: x509.h:802
X509_ALGOR * keyfunc
Definition: x509.h:519
OPENSSL_EXPORT int X509_TRUST_get_count(void)
Definition: x509_trs.c:135
OPENSSL_EXPORT int X509_ALGOR_set0(X509_ALGOR *alg, const ASN1_OBJECT *aobj, int ptype, void *pval)
OPENSSL_EXPORT int ASN1_item_digest(const ASN1_ITEM *it, const EVP_MD *type, void *data, unsigned char *md, unsigned int *len)
Definition: a_digest.c:83
OPENSSL_EXPORT int X509_verify_cert(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:190
unsigned long ex_xkusage
Definition: x509.h:254
ASN1_BOOLEAN critical
Definition: x509.h:168
OPENSSL_EXPORT char * X509_TRUST_get0_name(X509_TRUST *xp)
Definition: x509_trs.c:266
OPENSSL_EXPORT int X509_REQ_sign_ctx(X509_REQ *x, EVP_MD_CTX *ctx)
Definition: x_all.c:101
OPENSSL_EXPORT int X509_CRL_get_ext_by_critical(X509_CRL *x, int crit, int lastpos)
Definition: x509_ext.c:80
Definition: x509.h:178
OPENSSL_EXPORT X509_ATTRIBUTE * X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid, int atrtype, const void *data, int len)
Definition: x509_att.c:216
ASN1_BIT_STRING * issuerUID
Definition: x509.h:220
ASN1_INTEGER * crl_number
Definition: x509.h:432
void * meth_data
Definition: x509.h:437
OPENSSL_EXPORT int X509_REQ_add1_attr_by_OBJ(X509_REQ *req, const ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len)
Definition: x509_req.c:294
OPENSSL_EXPORT int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name)
Definition: x509rset.c:69
X509_ALGOR * maskGenAlgorithm
Definition: x509.h:1159
OPENSSL_EXPORT int X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos)
Definition: x509_req.c:266
Definition: x509.h:193
OPENSSL_EXPORT int X509_EXTENSION_set_data(X509_EXTENSION *ex, ASN1_OCTET_STRING *data)
Definition: x509_v3.c:245
OPENSSL_EXPORT int X509_set_version(X509 *x, long version)
Definition: x509_set.c:63
EVP_CIPHER_INFO cipher
Definition: x509.h:459
OPENSSL_EXPORT ASN1_OBJECT * X509_EXTENSION_get_object(X509_EXTENSION *ex)
Definition: x509_v3.c:257
OPENSSL_EXPORT int EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr)
Definition: x509.h:1157
Definition: x509.h:241
OPENSSL_EXPORT void X509_get0_signature(ASN1_BIT_STRING **psig, X509_ALGOR **palg, const X509 *x)
OPENSSL_EXPORT void X509_trust_clear(X509 *x)
OPENSSL_EXPORT int i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, EVP_PKEY *key)
Definition: x_all.c:470
X509_POLICY_CACHE * policy_cache
Definition: x509.h:258
struct A s
OPENSSL_EXPORT int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md)
Definition: x_all.c:95
ASN1_OBJECT * object
Definition: x509.h:180
ASN1_ENCODING enc
Definition: x509.h:195
OPENSSL_EXPORT int X509_set_notBefore(X509 *x, const ASN1_TIME *tm)
Definition: x509_set.c:110
OPENSSL_EXPORT int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx)
Definition: x_all.c:87
OPENSSL_EXPORT int X509_chain_check_suiteb(int *perror_depth, X509 *x, STACK_OF(X509) *chain, unsigned long flags)
Definition: x509_cmp.c:383
#define DECLARE_STACK_OF(type)
Definition: stack.h:114
Definition: bytestring_test.cc:31
OPENSSL_EXPORT int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki)
OPENSSL_EXPORT void X509_CRL_METHOD_free(X509_CRL_METHOD *m)
Definition: x_crl.c:522
ASN1_TIME * notAfter
Definition: x509.h:119
OPENSSL_EXPORT int X509_cmp_time(const ASN1_TIME *s, time_t *t)
Definition: x509_vfy.c:1810
OPENSSL_EXPORT int X509_REVOKED_add_ext(X509_REVOKED *x, X509_EXTENSION *ex, int loc)
Definition: x509_ext.c:190
OPENSSL_EXPORT int X509_TRUST_get_flags(X509_TRUST *xp)
Definition: x509_trs.c:261
ASN1_OCTET_STRING * value
Definition: x509.h:169
OPENSSL_EXPORT int X509_verify(X509 *a, EVP_PKEY *r)
Definition: x_all.c:66
void * arg2
Definition: x509.h:277
OPENSSL_EXPORT int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter, const unsigned char *salt, int saltlen)
OPENSSL_EXPORT EVP_PKEY * EVP_PKCS82PKEY(PKCS8_PRIV_KEY_INFO *p8)
Definition: pkcs8.c:601
OPENSSL_EXPORT unsigned long X509_issuer_name_hash_old(X509 *a)
Definition: x509_cmp.c:141
OPENSSL_EXPORT int X509_NAME_get_index_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, int lastpos)
Definition: x509name.c:112
X509_PUBKEY * key
Definition: x509.h:219
OPENSSL_EXPORT int X509_certificate_type(X509 *x, EVP_PKEY *pubkey)
Definition: x509type.c:61
OPENSSL_EXPORT int i2d_RSA_PUBKEY(const RSA *a, unsigned char **pp)
Definition: x_pubkey.c:243
OPENSSL_EXPORT int X509_get_ext_by_NID(X509 *x, int nid, int lastpos)
Definition: x509_ext.c:116
OPENSSL_EXPORT const char * X509_get_default_cert_area(void)
Definition: x509_def.c:75
ASN1_OCTET_STRING * keyid
Definition: x509.h:237
OPENSSL_EXPORT EVP_PKEY * NETSCAPE_SPKI_get_pubkey(NETSCAPE_SPKI *x)
Definition: x509spki.c:71
ASN1_INTEGER * version
Definition: x509.h:213
OPENSSL_EXPORT X509_NAME * X509_get_issuer_name(X509 *a)
Definition: x509_cmp.c:131
OPENSSL_EXPORT int i2d_DSAPrivateKey_bio(BIO *bp, DSA *dsa)
Definition: x_all.c:293
OPENSSL_EXPORT ASN1_INTEGER * X509_get_serialNumber(X509 *x)
Definition: x509_cmp.c:151
OPENSSL_EXPORT int X509_CRL_match(const X509_CRL *a, const X509_CRL *b)
Definition: x509_cmp.c:126
OPENSSL_EXPORT int X509_NAME_print(BIO *bp, X509_NAME *name, int obase)
Definition: t_x509.c:459
OPENSSL_EXPORT X509_REQ * X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
Definition: x509_req.c:69
OPENSSL_EXPORT int X509_NAME_set(X509_NAME **xn, X509_NAME *name)
Definition: x_name.c:517
NETSCAPE_SPKAC * spkac
Definition: x509.h:490
OPENSSL_EXPORT X509_ATTRIBUTE * X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc)
Definition: x509_att.c:101
GLboolean GLboolean GLboolean b
Definition: gl2ext.h:306
OPENSSL_EXPORT int X509_REQ_print_fp(FILE *bp, X509_REQ *req)
Definition: t_req.c:67
OPENSSL_EXPORT ASN1_BIT_STRING * X509_get0_pubkey_bitstr(const X509 *x)
Definition: x509_cmp.c:308
OPENSSL_EXPORT EC_KEY * d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey)
Definition: x_all.c:341
OPENSSL_EXPORT RSA * d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa)
Definition: x_all.c:217
X509_CRL_INFO * crl
Definition: x509.h:420
OPENSSL_EXPORT int X509_set_notAfter(X509 *x, const ASN1_TIME *tm)
Definition: x509_set.c:127
OPENSSL_EXPORT X509_EXTENSION * X509_CRL_delete_ext(X509_CRL *x, int loc)
Definition: x509_ext.c:90
ASN1_INTEGER * version
Definition: x509.h:196
OPENSSL_EXPORT RSA * d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa)
Definition: x_all.c:245
OPENSSL_EXPORT int X509_set_pubkey(X509 *x, EVP_PKEY *pkey)
Definition: x509_set.c:144
OPENSSL_EXPORT int EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *key, ASN1_OBJECT *obj, int lastpos)
unsigned long ex_flags
Definition: x509.h:252
OPENSSL_EXPORT int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b)
Definition: x509_cmp.c:195
X509_ALGOR * hashAlgorithm
Definition: x509.h:1158
ISSUING_DIST_POINT * idp
Definition: x509.h:427
ASN1_UTF8STRING * alias
Definition: x509.h:236
OPENSSL_EXPORT int X509_REQ_check_private_key(X509_REQ *x509, EVP_PKEY *pkey)
Definition: x509_req.c:118
X509_NAME * issuer
Definition: x509.h:409
CRYPTO_refcount_t references
Definition: x509.h:423
OPENSSL_EXPORT void * X509_REVOKED_get_ext_d2i(X509_REVOKED *x, int nid, int *crit, int *idx)
Definition: x509_ext.c:195
int idp_flags
Definition: x509.h:429
OPENSSL_EXPORT void X509_PKEY_free(X509_PKEY *a)
Definition: x_pkey.c:89
unsigned char * canon_enc
Definition: x509.h:157
OPENSSL_EXPORT int PKCS7_bundle_certificates(CBB *out, const STACK_OF(X509) *certs)
Definition: pkcs7.c:321
Definition: ex_data.h:204
DOMString alg
Definition: WebCryptoAPI.idl:104
OPENSSL_EXPORT X509_CRL * X509_CRL_dup(X509_CRL *crl)
OPENSSL_EXPORT int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags)
Definition: a_strex.c:576
OPENSSL_EXPORT int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, int nid, int lastpos)
Definition: x509_v3.c:72
Definition: x509.h:405
OPENSSL_EXPORT EVP_PKEY * X509_PUBKEY_get(X509_PUBKEY *key)
Definition: x_pubkey.c:133
OPENSSL_EXPORT int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x, const ASN1_OBJECT *obj, int lastpos)
Definition: x509_v3.c:83
OPENSSL_EXPORT int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs)
Definition: pkcs7.c:152
OPENSSL_EXPORT int X509_REVOKED_get_ext_by_NID(X509_REVOKED *x, int nid, int lastpos)
Definition: x509_ext.c:164
Definition: pcy_int.h:163
OPENSSL_EXPORT void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md)
EVP_CIPHER_INFO enc_cipher
Definition: x509.h:469
OPENSSL_EXPORT int X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos)
Definition: x509name.c:101
OPENSSL_EXPORT const char * X509_get_default_private_dir(void)
Definition: x509_def.c:70
OPENSSL_EXPORT int X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x)
Definition: x509_att.c:65
void X509_STORE_free(X509_STORE *vfy)
Definition: x509_lu.c:242
ASN1_OCTET_STRING * salt
Definition: x509.h:512
OPENSSL_EXPORT int X509_PUBKEY_set0_param(X509_PUBKEY *pub, const ASN1_OBJECT *aobj, int ptype, void *pval, unsigned char *penc, int penclen)
Definition: x_pubkey.c:337
Definition: x509.h:232
OPENSSL_EXPORT X509_ATTRIBUTE * X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc)
Definition: x509_att.c:109
OPENSSL_EXPORT int X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj)
Definition: x509_v3.c:228
Definition: x509.h:496
OPENSSL_EXPORT X509_ATTRIBUTE * X509_ATTRIBUTE_create_by_txt(X509_ATTRIBUTE **attr, const char *atrname, int type, const unsigned char *bytes, int len)
Definition: x509_att.c:259
OPENSSL_EXPORT int i2d_RSA_PUBKEY_bio(BIO *bp, RSA *rsa)
Definition: x_all.c:260
OPENSSL_EXPORT int X509_REQ_extension_nid(int nid)
Definition: x509_req.c:161
CFArrayRef CFTypeRef key
Definition: AVFoundationCFSoftLinking.h:129
ASN1_INTEGER * serialNumber
Definition: x509.h:392
Definition: x509_vfy.h:228
OPENSSL_EXPORT int PKCS8_pkey_set0(PKCS8_PRIV_KEY_INFO *priv, ASN1_OBJECT *aobj, int version, int ptype, void *pval, unsigned char *penc, int penclen)
Definition: x509.c:68
OPENSSL_EXPORT void * X509_CRL_get_meth_data(X509_CRL *crl)
Definition: x_crl.c:534
OPENSSL_EXPORT int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl)
Definition: x_all.c:174
OPENSSL_EXPORT int X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, int nid, int lastpos)
Definition: x509_att.c:70
const X509_CRL_METHOD * meth
Definition: x509.h:436
X509_ALGOR * sig_alg
Definition: x509.h:244
Definition: x509.h:482
OPENSSL_EXPORT const char * X509_verify_cert_error_string(long n)
Definition: x509_txt.c:66
CRYPTO_refcount_t references
Definition: x509.h:208
Definition: x_crl.c:79
Definition: bwe_rtp.cc:26
OPENSSL_EXPORT RSA * d2i_RSA_PUBKEY(RSA **a, const unsigned char **pp, long length)
Definition: x_pubkey.c:222
Definition: x509.h:165
OPENSSL_EXPORT int i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa)
Definition: x_all.c:207
ASN1_TYPE * single
Definition: x509.h:185
int modified
Definition: x509.h:150
OPENSSL_EXPORT int X509_REVOKED_get_ext_count(X509_REVOKED *x)
Definition: x509_ext.c:159
OPENSSL_EXPORT int i2d_X509_bio(BIO *bp, X509 *x509)
Definition: x_all.c:152
Definition: x509.h:271
int idp_reasons
Definition: x509.h:430
X509_PUBKEY * pubkey
Definition: x509.h:484
void X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param)
Definition: x509_vpm.c:186
char * ptr
Definition: x509.h:183
OPENSSL_EXPORT int X509_NAME_get_text_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, char *buf, int len)
Definition: x509name.c:76
#define DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name)
Definition: asn1.h:303
OPENSSL_EXPORT X509_EXTENSION * X509_delete_ext(X509 *x, int loc)
Definition: x509_ext.c:137
Definition: cipher.h:501
GLuint GLsizei GLsizei * length
Definition: gl2.h:435
OPENSSL_EXPORT int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey)
Definition: x_all.c:316
ASN1_INTEGER * version
Definition: x509.h:541
Definition: asn1.h:480
CRYPTO_EX_DATA ex_data
Definition: x509.h:248
OPENSSL_EXPORT int PKCS8_pkey_get0(ASN1_OBJECT **ppkalg, const unsigned char **pk, int *ppklen, X509_ALGOR **pa, PKCS8_PRIV_KEY_INFO *p8)
Definition: x509.c:107
X509_ALGOR * pkeyalg
Definition: x509.h:542
OPENSSL_EXPORT int X509_PUBKEY_get0_param(ASN1_OBJECT **ppkalg, const unsigned char **pk, int *ppklen, X509_ALGOR **pa, X509_PUBKEY *pub)
Definition: x_pubkey.c:355
X509_ALGOR * sig_alg
Definition: x509.h:421
OPENSSL_EXPORT X509_TRUST * X509_TRUST_get0(int idx)
Definition: x509_trs.c:142
int CRYPTO_EX_unused
Definition: ex_data.h:202
OPENSSL_EXPORT int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj)
GLboolean r
Definition: gl2ext.h:306
Definition: x509.h:523
OPENSSL_EXPORT int PKCS7_get_PEM_CRLs(STACK_OF(X509_CRL) *out_crls, BIO *pem_bio)
Definition: pkcs7.c:243
OPENSSL_EXPORT int EVP_PKEY_add1_attr_by_txt(EVP_PKEY *key, const char *attrname, int type, const unsigned char *bytes, int len)
ASN1_OBJECT * object
Definition: x509.h:167
OPENSSL_EXPORT int EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos)
OPENSSL_EXPORT int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x, int crit, int lastpos)
Definition: x509_v3.c:103
X509_ALGOR * sig_alg
Definition: x509.h:408
OPENSSL_EXPORT int i2d_X509_AUX(X509 *a, unsigned char **pp)