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/asn1.h>
67 #include <openssl/base.h>
68 #include <openssl/bio.h>
69 #include <openssl/cipher.h>
70 #include <openssl/dh.h>
71 #include <openssl/dsa.h>
72 #include <openssl/ec.h>
73 #include <openssl/ecdh.h>
74 #include <openssl/ecdsa.h>
75 #include <openssl/evp.h>
76 #include <openssl/obj.h>
77 #include <openssl/pkcs7.h>
78 #include <openssl/pool.h>
79 #include <openssl/rsa.h>
80 #include <openssl/sha.h>
81 #include <openssl/stack.h>
82 #include <openssl/thread.h>
83 #include <time.h>
84 
85 #if defined(__cplusplus)
86 extern "C" {
87 #endif
88 
89 
90 // Legacy X.509 library.
91 //
92 // This header is part of OpenSSL's X.509 implementation. It is retained for
93 // compatibility but otherwise underdocumented and not actively maintained. In
94 // the future, a replacement library will be available. Meanwhile, minimize
95 // dependencies on this header where possible.
96 
97 
98 #define X509_FILETYPE_PEM 1
99 #define X509_FILETYPE_ASN1 2
100 #define X509_FILETYPE_DEFAULT 3
101 
102 #define X509v3_KU_DIGITAL_SIGNATURE 0x0080
103 #define X509v3_KU_NON_REPUDIATION 0x0040
104 #define X509v3_KU_KEY_ENCIPHERMENT 0x0020
105 #define X509v3_KU_DATA_ENCIPHERMENT 0x0010
106 #define X509v3_KU_KEY_AGREEMENT 0x0008
107 #define X509v3_KU_KEY_CERT_SIGN 0x0004
108 #define X509v3_KU_CRL_SIGN 0x0002
109 #define X509v3_KU_ENCIPHER_ONLY 0x0001
110 #define X509v3_KU_DECIPHER_ONLY 0x8000
111 #define X509v3_KU_UNDEF 0xffff
112 
116 } /* X509_ALGOR */;
117 
119 
121 
122 typedef STACK_OF(X509_ALGOR) X509_ALGORS;
123 
125 
127 
128 typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;
129 
131 
133 
134 // This stuff is certificate "auxiliary info"
135 // it contains details which are useful in certificate
136 // stores and databases. When used this is tagged onto
137 // the end of the certificate itself
138 
141 
143 
144 // This is used for a table of trust checking functions
145 
147  int trust;
148  int flags;
150  char *name;
151  int arg1;
152  void *arg2;
153 } /* X509_TRUST */;
154 
156 
157 // standard trust ids
158 
159 #define X509_TRUST_DEFAULT (-1) // Only valid in purpose settings
160 
161 #define X509_TRUST_COMPAT 1
162 #define X509_TRUST_SSL_CLIENT 2
163 #define X509_TRUST_SSL_SERVER 3
164 #define X509_TRUST_EMAIL 4
165 #define X509_TRUST_OBJECT_SIGN 5
166 #define X509_TRUST_OCSP_SIGN 6
167 #define X509_TRUST_OCSP_REQUEST 7
168 #define X509_TRUST_TSA 8
169 
170 // Keep these up to date!
171 #define X509_TRUST_MIN 1
172 #define X509_TRUST_MAX 8
173 
174 
175 // trust_flags values
176 #define X509_TRUST_DYNAMIC 1
177 #define X509_TRUST_DYNAMIC_NAME 2
178 
179 // check_trust return codes
180 
181 #define X509_TRUST_TRUSTED 1
182 #define X509_TRUST_REJECTED 2
183 #define X509_TRUST_UNTRUSTED 3
184 
185 // Flags for X509_print_ex()
186 
187 #define X509_FLAG_COMPAT 0
188 #define X509_FLAG_NO_HEADER 1L
189 #define X509_FLAG_NO_VERSION (1L << 1)
190 #define X509_FLAG_NO_SERIAL (1L << 2)
191 #define X509_FLAG_NO_SIGNAME (1L << 3)
192 #define X509_FLAG_NO_ISSUER (1L << 4)
193 #define X509_FLAG_NO_VALIDITY (1L << 5)
194 #define X509_FLAG_NO_SUBJECT (1L << 6)
195 #define X509_FLAG_NO_PUBKEY (1L << 7)
196 #define X509_FLAG_NO_EXTENSIONS (1L << 8)
197 #define X509_FLAG_NO_SIGDUMP (1L << 9)
198 #define X509_FLAG_NO_AUX (1L << 10)
199 #define X509_FLAG_NO_ATTRIBUTES (1L << 11)
200 #define X509_FLAG_NO_IDS (1L << 12)
201 
202 // Flags specific to X509_NAME_print_ex()
203 
204 // The field separator information
205 
206 #define XN_FLAG_SEP_MASK (0xf << 16)
207 
208 #define XN_FLAG_COMPAT 0 // Traditional SSLeay: use old X509_NAME_print
209 #define XN_FLAG_SEP_COMMA_PLUS (1 << 16) // RFC 2253 ,+
210 #define XN_FLAG_SEP_CPLUS_SPC (2 << 16) // ,+ spaced: more readable
211 #define XN_FLAG_SEP_SPLUS_SPC (3 << 16) // ;+ spaced
212 #define XN_FLAG_SEP_MULTILINE (4 << 16) // One line per field
213 
214 #define XN_FLAG_DN_REV (1 << 20) // Reverse DN order
215 
216 // How the field name is shown
217 
218 #define XN_FLAG_FN_MASK (0x3 << 21)
219 
220 #define XN_FLAG_FN_SN 0 // Object short name
221 #define XN_FLAG_FN_LN (1 << 21) // Object long name
222 #define XN_FLAG_FN_OID (2 << 21) // Always use OIDs
223 #define XN_FLAG_FN_NONE (3 << 21) // No field names
224 
225 #define XN_FLAG_SPC_EQ (1 << 23) // Put spaces round '='
226 
227 // This determines if we dump fields we don't recognise:
228 // RFC 2253 requires this.
229 
230 #define XN_FLAG_DUMP_UNKNOWN_FIELDS (1 << 24)
231 
232 #define XN_FLAG_FN_ALIGN (1 << 25) // Align field names to 20 characters
233 
234 // Complete set of RFC 2253 flags
235 
236 #define XN_FLAG_RFC2253 \
237  (ASN1_STRFLGS_RFC2253 | XN_FLAG_SEP_COMMA_PLUS | XN_FLAG_DN_REV | \
238  XN_FLAG_FN_SN | XN_FLAG_DUMP_UNKNOWN_FIELDS)
239 
240 // readable oneline form
241 
242 #define XN_FLAG_ONELINE \
243  (ASN1_STRFLGS_RFC2253 | ASN1_STRFLGS_ESC_QUOTE | XN_FLAG_SEP_CPLUS_SPC | \
244  XN_FLAG_SPC_EQ | XN_FLAG_FN_SN)
245 
246 // readable multiline form
247 
248 #define XN_FLAG_MULTILINE \
249  (ASN1_STRFLGS_ESC_CTRL | ASN1_STRFLGS_ESC_MSB | XN_FLAG_SEP_MULTILINE | \
250  XN_FLAG_SPC_EQ | XN_FLAG_FN_LN | XN_FLAG_FN_ALIGN)
251 
255  STACK_OF(X509_EXTENSION) /* optional */ *extensions;
256  // Set up if indirect CRL
257  STACK_OF(GENERAL_NAME) *issuer;
258  // Revocation reason
259  int reason;
260  int sequence; // load sequence
261 };
262 
264 
265 DECLARE_STACK_OF(GENERAL_NAMES)
266 
268 
270  int version;
271  // The PKCS#8 data types
273  ASN1_OCTET_STRING *enc_pkey; // encrypted pub key
274 
275  // When decrypted, the following will not be NULL
277 
278  // used to encrypt and decrypt
280  char *key_data;
281  int key_free; // true if we should auto free key_data
282 
283  // expanded version of 'enc_algor'
285 } /* X509_PKEY */;
286 
287 struct X509_info_st {
291 
293  int enc_len;
294  char *enc_data;
295 
296 } /* X509_INFO */;
297 
299 
300 // The next 2 structures and their 8 routines were sent to me by
301 // Pat Richard <patr@x509.com> and are used to manipulate
302 // Netscapes spki structures - useful if you are writing a CA web page
305  ASN1_IA5STRING *challenge; // challenge sent in atlas >= PR2
306 } /* NETSCAPE_SPKAC */;
307 
309  NETSCAPE_SPKAC *spkac; // signed public key and challenge
312 } /* NETSCAPE_SPKI */;
313 
314 // TODO(davidben): Document remaining functions, reorganize them, and define
315 // supported patterns for using |X509| objects in general. In particular, when
316 // it is safe to call mutating functions is a little tricky due to various
317 // internal caches.
318 
319 // X509_VERSION_* are X.509 version numbers. Note the numerical values of all
320 // defined X.509 versions are one less than the named version.
321 #define X509_VERSION_1 0
322 #define X509_VERSION_2 1
323 #define X509_VERSION_3 2
324 
325 // X509_get_version returns the numerical value of |x509|'s version. Callers may
326 // compare the result to the |X509_VERSION_*| constants. Unknown versions are
327 // rejected by the parser, but a manually-created |X509| object may encode
328 // invalid versions. In that case, the function will return the invalid version,
329 // or -1 on overflow.
330 OPENSSL_EXPORT long X509_get_version(const X509 *x509);
331 
332 // X509_set_version sets |x509|'s version to |version|, which should be one of
333 // the |X509V_VERSION_*| constants. It returns one on success and zero on error.
334 //
335 // If unsure, use |X509_VERSION_3|.
337 
338 // X509_get0_serialNumber returns |x509|'s serial number.
340 
341 // X509_set_serialNumber sets |x509|'s serial number to |serial|. It returns one
342 // on success and zero on error.
344  const ASN1_INTEGER *serial);
345 
346 // X509_get0_notBefore returns |x509|'s notBefore time.
348 
349 // X509_get0_notAfter returns |x509|'s notAfter time.
350 OPENSSL_EXPORT const ASN1_TIME *X509_get0_notAfter(const X509 *x509);
351 
352 // X509_set1_notBefore sets |x509|'s notBefore time to |tm|. It returns one on
353 // success and zero on error.
355 
356 // X509_set1_notAfter sets |x509|'s notAfter time to |tm|. it returns one on
357 // success and zero on error.
359 
360 // X509_getm_notBefore returns a mutable pointer to |x509|'s notBefore time.
362 
363 // X509_getm_notAfter returns a mutable pointer to |x509|'s notAfter time.
365 
366 // X509_get_notBefore returns |x509|'s notBefore time. Note this function is not
367 // const-correct for legacy reasons. Use |X509_get0_notBefore| or
368 // |X509_getm_notBefore| instead.
370 
371 // X509_get_notAfter returns |x509|'s notAfter time. Note this function is not
372 // const-correct for legacy reasons. Use |X509_get0_notAfter| or
373 // |X509_getm_notAfter| instead.
375 
376 // X509_set_notBefore calls |X509_set1_notBefore|. Use |X509_set1_notBefore|
377 // instead.
379 
380 // X509_set_notAfter calls |X509_set1_notAfter|. Use |X509_set1_notAfter|
381 // instead.
383 
384 // X509_get0_uids sets |*out_issuer_uid| to a non-owning pointer to the
385 // issuerUID field of |x509|, or NULL if |x509| has no issuerUID. It similarly
386 // outputs |x509|'s subjectUID field to |*out_subject_uid|.
387 //
388 // Callers may pass NULL to either |out_issuer_uid| or |out_subject_uid| to
389 // ignore the corresponding field.
390 OPENSSL_EXPORT void X509_get0_uids(const X509 *x509,
391  const ASN1_BIT_STRING **out_issuer_uid,
392  const ASN1_BIT_STRING **out_subject_uid);
393 
394 // X509_extract_key is a legacy alias to |X509_get_pubkey|. Use
395 // |X509_get_pubkey| instead.
396 #define X509_extract_key(x) X509_get_pubkey(x)
397 
398 // X509_get_pathlen returns path length constraint from the basic constraints
399 // extension in |x509|. (See RFC 5280, section 4.2.1.9.) It returns -1 if the
400 // constraint is not present, or if some extension in |x509| was invalid.
401 //
402 // Note that decoding an |X509| object will not check for invalid extensions. To
403 // detect the error case, call |X509_get_extensions_flags| and check the
404 // |EXFLAG_INVALID| bit.
406 
407 // X509_REQ_VERSION_1 is the version constant for |X509_REQ| objects. Note no
408 // other versions are defined.
409 #define X509_REQ_VERSION_1 0
410 
411 // X509_REQ_get_version returns the numerical value of |req|'s version. This
412 // will be |X509_REQ_VERSION_1| for valid certificate requests. If |req| is
413 // invalid, it may return another value, or -1 on overflow.
414 //
415 // TODO(davidben): Enforce the version number in the parser.
417 
418 // X509_REQ_get_subject_name returns |req|'s subject name. Note this function is
419 // not const-correct for legacy reasons.
421 
422 // X509_REQ_extract_key is a legacy alias for |X509_REQ_get_pubkey|.
423 #define X509_REQ_extract_key(a) X509_REQ_get_pubkey(a)
424 
425 // X509_name_cmp is a legacy alias for |X509_NAME_cmp|.
426 #define X509_name_cmp(a, b) X509_NAME_cmp((a), (b))
427 
428 #define X509_CRL_VERSION_1 0
429 #define X509_CRL_VERSION_2 1
430 
431 // X509_CRL_get_version returns the numerical value of |crl|'s version. Callers
432 // may compare the result to |X509_CRL_VERSION_*| constants. If |crl| is
433 // invalid, it may return another value, or -1 on overflow.
434 //
435 // TODO(davidben): Enforce the version number in the parser.
437 
438 // X509_CRL_get0_lastUpdate returns |crl|'s lastUpdate time.
440 
441 // X509_CRL_get0_nextUpdate returns |crl|'s nextUpdate time, or NULL if |crl|
442 // has none.
444 
445 // X509_CRL_set1_lastUpdate sets |crl|'s lastUpdate time to |tm|. It returns one
446 // on success and zero on error.
448 
449 // X509_CRL_set1_nextUpdate sets |crl|'s nextUpdate time to |tm|. It returns one
450 // on success and zero on error.
452 
453 // The following symbols are deprecated aliases to |X509_CRL_set1_*|.
454 #define X509_CRL_set_lastUpdate X509_CRL_set1_lastUpdate
455 #define X509_CRL_set_nextUpdate X509_CRL_set1_nextUpdate
456 
457 // X509_CRL_get_lastUpdate returns a mutable pointer to |crl|'s lastUpdate time.
458 // Use |X509_CRL_get0_lastUpdate| or |X509_CRL_set1_lastUpdate| instead.
460 
461 // X509_CRL_get_nextUpdate returns a mutable pointer to |crl|'s nextUpdate time,
462 // or NULL if |crl| has none. Use |X509_CRL_get0_nextUpdate| or
463 // |X509_CRL_set1_nextUpdate| instead.
465 
466 // X509_CRL_get_issuer returns |crl|'s issuer name. Note this function is not
467 // const-correct for legacy reasons.
469 
470 // X509_CRL_get_REVOKED returns the list of revoked certificates in |crl|, or
471 // NULL if |crl| omits it.
472 //
473 // TOOD(davidben): This function was originally a macro, without clear const
474 // semantics. It should take a const input and give const output, but the latter
475 // would break existing callers. For now, we match upstream.
477 
478 // X509_CRL_get0_extensions returns |crl|'s extension list, or NULL if |crl|
479 // omits it.
481  const X509_CRL *crl);
482 
483 // X509_SIG_get0 sets |*out_alg| and |*out_digest| to non-owning pointers to
484 // |sig|'s algorithm and digest fields, respectively. Either |out_alg| and
485 // |out_digest| may be NULL to skip those fields.
486 OPENSSL_EXPORT void X509_SIG_get0(const X509_SIG *sig,
487  const X509_ALGOR **out_alg,
488  const ASN1_OCTET_STRING **out_digest);
489 
490 // X509_SIG_getm behaves like |X509_SIG_get0| but returns mutable pointers.
491 OPENSSL_EXPORT void X509_SIG_getm(X509_SIG *sig, X509_ALGOR **out_alg,
492  ASN1_OCTET_STRING **out_digest);
493 
496  int (*crl_init)(X509_CRL *crl), int (*crl_free)(X509_CRL *crl),
497  int (*crl_lookup)(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *ser,
498  X509_NAME *issuer),
499  int (*crl_verify)(X509_CRL *crl, EVP_PKEY *pk));
501 
502 OPENSSL_EXPORT void X509_CRL_set_meth_data(X509_CRL *crl, void *dat);
504 
505 // X509_get_X509_PUBKEY returns the public key of |x509|. Note this function is
506 // not const-correct for legacy reasons. Callers should not modify the returned
507 // object.
509 
510 // X509_verify_cert_error_string returns |err| as a human-readable string, where
511 // |err| should be one of the |X509_V_*| values. If |err| is unknown, it returns
512 // a default description.
514 
515 // X509_verify checks that |x509| has a valid signature by |pkey|. It returns
516 // one if the signature is valid and zero otherwise. Note this function only
517 // checks the signature itself and does not perform a full certificate
518 // validation.
519 OPENSSL_EXPORT int X509_verify(X509 *x509, EVP_PKEY *pkey);
520 
521 // X509_REQ_verify checks that |req| has a valid signature by |pkey|. It returns
522 // one if the signature is valid and zero otherwise.
524 
525 // X509_CRL_verify checks that |crl| has a valid signature by |pkey|. It returns
526 // one if the signature is valid and zero otherwise.
528 
529 // NETSCAPE_SPKI_verify checks that |spki| has a valid signature by |pkey|. It
530 // returns one if the signature is valid and zero otherwise.
532 
533 // NETSCAPE_SPKI_b64_decode decodes |len| bytes from |str| as a base64-encoded
534 // Netscape signed public key and challenge (SPKAC) structure. It returns a
535 // newly-allocated |NETSCAPE_SPKI| structure with the result, or NULL on error.
536 // If |len| is 0 or negative, the length is calculated with |strlen| and |str|
537 // must be a NUL-terminated C string.
539  int len);
540 
541 // NETSCAPE_SPKI_b64_encode encodes |spki| as a base64-encoded Netscape signed
542 // public key and challenge (SPKAC) structure. It returns a newly-allocated
543 // NUL-terminated C string with the result, or NULL on error. The caller must
544 // release the memory with |OPENSSL_free| when done.
546 
547 // NETSCAPE_SPKI_get_pubkey decodes and returns the public key in |spki| as an
548 // |EVP_PKEY|, or NULL on error. The caller takes ownership of the resulting
549 // pointer and must call |EVP_PKEY_free| when done.
551 
552 // NETSCAPE_SPKI_set_pubkey sets |spki|'s public key to |pkey|. It returns one
553 // on success or zero on error. This function does not take ownership of |pkey|,
554 // so the caller may continue to manage its lifetime independently of |spki|.
556  EVP_PKEY *pkey);
557 
558 // X509_signature_dump writes a human-readable representation of |sig| to |bio|,
559 // indented with |indent| spaces. It returns one on success and zero on error.
561  int indent);
562 
563 // X509_signature_print writes a human-readable representation of |alg| and
564 // |sig| to |bio|. It returns one on success and zero on error.
566  const ASN1_STRING *sig);
567 
568 // X509_sign signs |x509| with |pkey| and replaces the signature algorithm and
569 // signature fields. It returns one on success and zero on error. This function
570 // uses digest algorithm |md|, or |pkey|'s default if NULL. Other signing
571 // parameters use |pkey|'s defaults. To customize them, use |X509_sign_ctx|.
572 OPENSSL_EXPORT int X509_sign(X509 *x509, EVP_PKEY *pkey, const EVP_MD *md);
573 
574 // X509_sign_ctx signs |x509| with |ctx| and replaces the signature algorithm
575 // and signature fields. It returns one on success and zero on error. The
576 // signature algorithm and parameters come from |ctx|, which must have been
577 // initialized with |EVP_DigestSignInit|. The caller should configure the
578 // corresponding |EVP_PKEY_CTX| before calling this function.
580 
581 // X509_REQ_sign signs |req| with |pkey| and replaces the signature algorithm
582 // and signature fields. It returns one on success and zero on error. This
583 // function uses digest algorithm |md|, or |pkey|'s default if NULL. Other
584 // signing parameters use |pkey|'s defaults. To customize them, use
585 // |X509_REQ_sign_ctx|.
587  const EVP_MD *md);
588 
589 // X509_REQ_sign_ctx signs |req| with |ctx| and replaces the signature algorithm
590 // and signature fields. It returns one on success and zero on error. The
591 // signature algorithm and parameters come from |ctx|, which must have been
592 // initialized with |EVP_DigestSignInit|. The caller should configure the
593 // corresponding |EVP_PKEY_CTX| before calling this function.
595 
596 // X509_CRL_sign signs |crl| with |pkey| and replaces the signature algorithm
597 // and signature fields. It returns one on success and zero on error. This
598 // function uses digest algorithm |md|, or |pkey|'s default if NULL. Other
599 // signing parameters use |pkey|'s defaults. To customize them, use
600 // |X509_CRL_sign_ctx|.
602  const EVP_MD *md);
603 
604 // X509_CRL_sign_ctx signs |crl| with |ctx| and replaces the signature algorithm
605 // and signature fields. It returns one on success and zero on error. The
606 // signature algorithm and parameters come from |ctx|, which must have been
607 // initialized with |EVP_DigestSignInit|. The caller should configure the
608 // corresponding |EVP_PKEY_CTX| before calling this function.
610 
611 // NETSCAPE_SPKI_sign signs |spki| with |pkey| and replaces the signature
612 // algorithm and signature fields. It returns one on success and zero on error.
613 // This function uses digest algorithm |md|, or |pkey|'s default if NULL. Other
614 // signing parameters use |pkey|'s defaults.
616  const EVP_MD *md);
617 
618 // X509_pubkey_digest hashes the DER encoding of |x509|'s subjectPublicKeyInfo
619 // field with |md| and writes the result to |out|. |EVP_MD_CTX_size| bytes are
620 // written, which is at most |EVP_MAX_MD_SIZE|. If |out_len| is not NULL,
621 // |*out_len| is set to the number of bytes written. This function returns one
622 // on success and zero on error.
623 OPENSSL_EXPORT int X509_pubkey_digest(const X509 *x509, const EVP_MD *md,
624  uint8_t *out, unsigned *out_len);
625 
626 // X509_digest hashes |x509|'s DER encoding with |md| and writes the result to
627 // |out|. |EVP_MD_CTX_size| bytes are written, which is at most
628 // |EVP_MAX_MD_SIZE|. If |out_len| is not NULL, |*out_len| is set to the number
629 // of bytes written. This function returns one on success and zero on error.
630 // Note this digest covers the entire certificate, not just the signed portion.
631 OPENSSL_EXPORT int X509_digest(const X509 *x509, const EVP_MD *md, uint8_t *out,
632  unsigned *out_len);
633 
634 // X509_CRL_digest hashes |crl|'s DER encoding with |md| and writes the result
635 // to |out|. |EVP_MD_CTX_size| bytes are written, which is at most
636 // |EVP_MAX_MD_SIZE|. If |out_len| is not NULL, |*out_len| is set to the number
637 // of bytes written. This function returns one on success and zero on error.
638 // Note this digest covers the entire CRL, not just the signed portion.
639 OPENSSL_EXPORT int X509_CRL_digest(const X509_CRL *crl, const EVP_MD *md,
640  uint8_t *out, unsigned *out_len);
641 
642 // X509_REQ_digest hashes |req|'s DER encoding with |md| and writes the result
643 // to |out|. |EVP_MD_CTX_size| bytes are written, which is at most
644 // |EVP_MAX_MD_SIZE|. If |out_len| is not NULL, |*out_len| is set to the number
645 // of bytes written. This function returns one on success and zero on error.
646 // Note this digest covers the entire certificate request, not just the signed
647 // portion.
649  uint8_t *out, unsigned *out_len);
650 
651 // X509_NAME_digest hashes |name|'s DER encoding with |md| and writes the result
652 // to |out|. |EVP_MD_CTX_size| bytes are written, which is at most
653 // |EVP_MAX_MD_SIZE|. If |out_len| is not NULL, |*out_len| is set to the number
654 // of bytes written. This function returns one on success and zero on error.
656  uint8_t *out, unsigned *out_len);
657 
658 // X509_parse_from_buffer parses an X.509 structure from |buf| and returns a
659 // fresh X509 or NULL on error. There must not be any trailing data in |buf|.
660 // The returned structure (if any) holds a reference to |buf| rather than
661 // copying parts of it as a normal |d2i_X509| call would do.
663 
664 OPENSSL_EXPORT X509 *d2i_X509_fp(FILE *fp, X509 **x509);
665 OPENSSL_EXPORT int i2d_X509_fp(FILE *fp, X509 *x509);
676 #ifndef OPENSSL_NO_DSA
681 #endif
683 OPENSSL_EXPORT int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey);
689  FILE *fp, PKCS8_PRIV_KEY_INFO **p8inf);
691  PKCS8_PRIV_KEY_INFO *p8inf);
695 OPENSSL_EXPORT int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey);
697 
698 OPENSSL_EXPORT X509 *d2i_X509_bio(BIO *bp, X509 **x509);
699 OPENSSL_EXPORT int i2d_X509_bio(BIO *bp, X509 *x509);
710 #ifndef OPENSSL_NO_DSA
715 #endif
717 OPENSSL_EXPORT int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey);
723  BIO *bp, PKCS8_PRIV_KEY_INFO **p8inf);
725  PKCS8_PRIV_KEY_INFO *p8inf);
729 OPENSSL_EXPORT int i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey);
732 OPENSSL_EXPORT int i2d_DHparams_bio(BIO *bp, const DH *dh);
733 
741 
742 // X509_ALGOR_set0 sets |alg| to an AlgorithmIdentifier with algorithm |obj| and
743 // parameter determined by |param_type| and |param_value|. It returns one on
744 // success and zero on error. This function takes ownership of |obj| and
745 // |param_value| on success.
746 //
747 // If |param_type| is |V_ASN1_UNDEF|, the parameter is omitted. If |param_type|
748 // is zero, the parameter is left unchanged. Otherwise, |param_type| and
749 // |param_value| are interpreted as in |ASN1_TYPE_set|.
750 //
751 // Note omitting the parameter (|V_ASN1_UNDEF|) and encoding an explicit NULL
752 // value (|V_ASN1_NULL|) are different. Some algorithms require one and some the
753 // other. Consult the relevant specification before calling this function. The
754 // correct parameter for an RSASSA-PKCS1-v1_5 signature is |V_ASN1_NULL|. The
755 // correct one for an ECDSA or Ed25519 signature is |V_ASN1_UNDEF|.
757  int param_type, void *param_value);
758 
759 // X509_ALGOR_get0 sets |*out_obj| to the |alg|'s algorithm. If |alg|'s
760 // parameter is omitted, it sets |*out_param_type| and |*out_param_value| to
761 // |V_ASN1_UNDEF| and NULL. Otherwise, it sets |*out_param_type| and
762 // |*out_param_value| to the parameter, using the same representation as
763 // |ASN1_TYPE_set0|. See |ASN1_TYPE_set0| and |ASN1_TYPE| for details.
764 //
765 // Callers that require the parameter in serialized form should, after checking
766 // for |V_ASN1_UNDEF|, use |ASN1_TYPE_set1| and |d2i_ASN1_TYPE|, rather than
767 // inspecting |*out_param_value|.
768 //
769 // Each of |out_obj|, |out_param_type|, and |out_param_value| may be NULL to
770 // ignore the output. If |out_param_type| is NULL, |out_param_value| is ignored.
771 //
772 // WARNING: If |*out_param_type| is set to |V_ASN1_UNDEF|, OpenSSL and older
773 // revisions of BoringSSL leave |*out_param_value| unset rather than setting it
774 // to NULL. Callers that support both OpenSSL and BoringSSL should not assume
775 // |*out_param_value| is uniformly initialized.
776 OPENSSL_EXPORT void X509_ALGOR_get0(const ASN1_OBJECT **out_obj,
777  int *out_param_type,
778  const void **out_param_value,
779  const X509_ALGOR *alg);
780 
781 // X509_ALGOR_set_md sets |alg| to the hash function |md|. Note this
782 // AlgorithmIdentifier represents the hash function itself, not a signature
783 // algorithm that uses |md|.
785 
786 // X509_ALGOR_cmp returns zero if |a| and |b| are equal, and some non-zero value
787 // otherwise. Note this function can only be used for equality checks, not an
788 // ordering.
790 
794 
795 OPENSSL_EXPORT int X509_NAME_get0_der(X509_NAME *nm, const unsigned char **pder,
796  size_t *pderlen);
797 
798 // X509_cmp_time compares |s| against |*t|. On success, it returns a negative
799 // number if |s| <= |*t| and a positive number if |s| > |*t|. On error, it
800 // returns zero. If |t| is NULL, it uses the current time instead of |*t|.
801 //
802 // WARNING: Unlike most comparison functions, this function returns zero on
803 // error, not equality.
804 OPENSSL_EXPORT int X509_cmp_time(const ASN1_TIME *s, time_t *t);
805 
806 // X509_cmp_current_time behaves like |X509_cmp_time| but compares |s| against
807 // the current time.
809 
810 // X509_time_adj calls |X509_time_adj_ex| with |offset_day| equal to zero.
811 OPENSSL_EXPORT ASN1_TIME *X509_time_adj(ASN1_TIME *s, long offset_sec,
812  time_t *t);
813 
814 // X509_time_adj_ex behaves like |ASN1_TIME_adj|, but adds an offset to |*t|. If
815 // |t| is NULL, it uses the current time instead of |*t|.
817  long offset_sec, time_t *t);
818 
819 // X509_gmtime_adj behaves like |X509_time_adj_ex| but adds |offset_sec| to the
820 // current time.
821 OPENSSL_EXPORT ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long offset_sec);
822 
824 OPENSSL_EXPORT const char *X509_get_default_cert_dir(void);
829 
831  const EVP_MD *md);
832 
833 DECLARE_ASN1_ENCODE_FUNCTIONS(X509_ALGORS, X509_ALGORS, X509_ALGORS)
834 
836 
837 // X509_PUBKEY_set serializes |pkey| into a newly-allocated |X509_PUBKEY|
838 // structure. On success, it frees |*x|, sets |*x| to the new object, and
839 // returns one. Otherwise, it returns zero.
841 
842 // X509_PUBKEY_get decodes the public key in |key| and returns an |EVP_PKEY| on
843 // success, or NULL on error. The caller must release the result with
844 // |EVP_PKEY_free| when done. The |EVP_PKEY| is cached in |key|, so callers must
845 // not mutate the result.
847 
850 
852 
853 // X509_ATTRIBUTE_create returns a newly-allocated |X509_ATTRIBUTE|, or NULL on
854 // error. The attribute has type |nid| and contains a single value determined by
855 // |attrtype| and |value|, which are interpreted as in |ASN1_TYPE_set|. Note
856 // this function takes ownership of |value|.
858  void *value);
859 
861 DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
862 
864 
866 
867 // X509_NAME_set makes a copy of |name|. On success, it frees |*xn|, sets |*xn|
868 // to the copy, and returns one. Otherwise, it returns zero.
870 
873 
874 // X509_up_ref adds one to the reference count of |x509| and returns one.
875 OPENSSL_EXPORT int X509_up_ref(X509 *x509);
876 
877 OPENSSL_EXPORT int X509_get_ex_new_index(long argl, void *argp,
878  CRYPTO_EX_unused *unused,
879  CRYPTO_EX_dup *dup_unused,
880  CRYPTO_EX_free *free_func);
881 OPENSSL_EXPORT int X509_set_ex_data(X509 *r, int idx, void *arg);
883 OPENSSL_EXPORT int i2d_X509_AUX(X509 *a, unsigned char **pp);
884 OPENSSL_EXPORT X509 *d2i_X509_AUX(X509 **a, const unsigned char **pp,
885  long length);
886 
887 // i2d_re_X509_tbs serializes the TBSCertificate portion of |x509|, as described
888 // in |i2d_SAMPLE|.
889 //
890 // This function re-encodes the TBSCertificate and may not reflect |x509|'s
891 // original encoding. It may be used to manually generate a signature for a new
892 // certificate. To verify certificates, use |i2d_X509_tbs| instead.
893 OPENSSL_EXPORT int i2d_re_X509_tbs(X509 *x509, unsigned char **outp);
894 
895 // i2d_X509_tbs serializes the TBSCertificate portion of |x509|, as described in
896 // |i2d_SAMPLE|.
897 //
898 // This function preserves the original encoding of the TBSCertificate and may
899 // not reflect modifications made to |x509|. It may be used to manually verify
900 // the signature of an existing certificate. To generate certificates, use
901 // |i2d_re_X509_tbs| instead.
902 OPENSSL_EXPORT int i2d_X509_tbs(X509 *x509, unsigned char **outp);
903 
904 // X509_set1_signature_algo sets |x509|'s signature algorithm to |algo| and
905 // returns one on success or zero on error. It updates both the signature field
906 // of the TBSCertificate structure, and the signatureAlgorithm field of the
907 // Certificate.
909 
910 // X509_set1_signature_value sets |x509|'s signature to a copy of the |sig_len|
911 // bytes pointed by |sig|. It returns one on success and zero on error.
912 //
913 // Due to a specification error, X.509 certificates store signatures in ASN.1
914 // BIT STRINGs, but signature algorithms return byte strings rather than bit
915 // strings. This function creates a BIT STRING containing a whole number of
916 // bytes, with the bit order matching the DER encoding. This matches the
917 // encoding used by all X.509 signature algorithms.
919  size_t sig_len);
920 
921 // X509_get0_signature sets |*out_sig| and |*out_alg| to the signature and
922 // signature algorithm of |x509|, respectively. Either output pointer may be
923 // NULL to ignore the value.
924 //
925 // This function outputs the outer signature algorithm. For the one in the
926 // TBSCertificate, see |X509_get0_tbs_sigalg|. Certificates with mismatched
927 // signature algorithms will successfully parse, but they will be rejected when
928 // verifying.
930  const X509_ALGOR **out_alg,
931  const X509 *x509);
932 
933 // X509_get_signature_nid returns the NID corresponding to |x509|'s signature
934 // algorithm, or |NID_undef| if the signature algorithm does not correspond to
935 // a known NID.
937 
938 OPENSSL_EXPORT int X509_alias_set1(X509 *x, const unsigned char *name, int len);
939 OPENSSL_EXPORT int X509_keyid_set1(X509 *x, const unsigned char *id, int len);
940 OPENSSL_EXPORT unsigned char *X509_alias_get0(X509 *x, int *len);
941 OPENSSL_EXPORT unsigned char *X509_keyid_get0(X509 *x, int *len);
943  int)))(int, X509 *,
944  int);
945 OPENSSL_EXPORT int X509_TRUST_set(int *t, int trust);
950 
953 
956  ASN1_INTEGER *serial);
958  X509 *x);
959 
962 
965 
968 OPENSSL_EXPORT char *X509_NAME_oneline(const X509_NAME *a, char *buf, int size);
969 
970 OPENSSL_EXPORT int ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data,
971  unsigned char *md, unsigned int *len);
972 
974  void *data, unsigned char *md,
975  unsigned int *len);
976 
978  const X509_ALGOR *algor1,
979  const ASN1_BIT_STRING *signature,
980  void *data, EVP_PKEY *pkey);
981 
983  X509_ALGOR *algor2,
984  ASN1_BIT_STRING *signature, void *data,
985  EVP_PKEY *pkey, const EVP_MD *type);
987  X509_ALGOR *algor2,
988  ASN1_BIT_STRING *signature, void *asn,
989  EVP_MD_CTX *ctx);
990 
991 // X509_get_serialNumber returns a mutable pointer to |x509|'s serial number.
992 // Prefer |X509_get0_serialNumber|.
994 
995 // X509_set_issuer_name sets |x509|'s issuer to a copy of |name|. It returns one
996 // on success and zero on error.
998 
999 // X509_get_issuer_name returns |x509|'s issuer.
1001 
1002 // X509_set_subject_name sets |x509|'s subject to a copy of |name|. It returns
1003 // one on success and zero on error.
1005 
1006 // X509_get_issuer_name returns |x509|'s subject.
1008 
1009 // X509_set_pubkey sets |x509|'s public key to |pkey|. It returns one on success
1010 // and zero on error. This function does not take ownership of |pkey| and
1011 // internally copies and updates reference counts as needed.
1012 OPENSSL_EXPORT int X509_set_pubkey(X509 *x509, EVP_PKEY *pkey);
1013 
1014 // X509_get_pubkey returns |x509|'s public key as an |EVP_PKEY|, or NULL if the
1015 // public key was unsupported or could not be decoded. This function returns a
1016 // reference to the |EVP_PKEY|. The caller must release the result with
1017 // |EVP_PKEY_free| when done.
1019 
1020 // X509_get0_pubkey_bitstr returns the BIT STRING portion of |x509|'s public
1021 // key. Note this does not contain the AlgorithmIdentifier portion.
1022 //
1023 // WARNING: This function returns a non-const pointer for OpenSSL compatibility,
1024 // but the caller must not modify the resulting object. Doing so will break
1025 // internal invariants in |x509|.
1027 
1028 // X509_get0_extensions returns |x509|'s extension list, or NULL if |x509| omits
1029 // it.
1031  const X509 *x509);
1032 
1033 // X509_get0_tbs_sigalg returns the signature algorithm in |x509|'s
1034 // TBSCertificate. For the outer signature algorithm, see |X509_get0_signature|.
1035 //
1036 // Certificates with mismatched signature algorithms will successfully parse,
1037 // but they will be rejected when verifying.
1039 
1040 // X509_REQ_set_version sets |req|'s version to |version|, which should be
1041 // |X509_REQ_VERSION_1|. It returns one on success and zero on error.
1042 //
1043 // Note no versions other than |X509_REQ_VERSION_1| are defined for CSRs.
1045 
1046 // X509_REQ_set_subject_name sets |req|'s subject to a copy of |name|. It
1047 // returns one on success and zero on error.
1049 
1050 // X509_REQ_get0_signature sets |*out_sig| and |*out_alg| to the signature and
1051 // signature algorithm of |req|, respectively. Either output pointer may be NULL
1052 // to ignore the value.
1054  const ASN1_BIT_STRING **out_sig,
1055  const X509_ALGOR **out_alg);
1056 
1057 // X509_REQ_get_signature_nid returns the NID corresponding to |req|'s signature
1058 // algorithm, or |NID_undef| if the signature algorithm does not correspond to
1059 // a known NID.
1061 
1062 // i2d_re_X509_REQ_tbs serializes the CertificationRequestInfo (see RFC 2986)
1063 // portion of |req|, as described in |i2d_SAMPLE|.
1064 //
1065 // This function re-encodes the CertificationRequestInfo and may not reflect
1066 // |req|'s original encoding. It may be used to manually generate a signature
1067 // for a new certificate request.
1069 
1070 // X509_REQ_set_pubkey sets |req|'s public key to |pkey|. It returns one on
1071 // success and zero on error. This function does not take ownership of |pkey|
1072 // and internally copies and updates reference counts as needed.
1074 
1075 // X509_REQ_get_pubkey returns |req|'s public key as an |EVP_PKEY|, or NULL if
1076 // the public key was unsupported or could not be decoded. This function returns
1077 // a reference to the |EVP_PKEY|. The caller must release the result with
1078 // |EVP_PKEY_free| when done.
1080 
1081 // X509_REQ_extension_nid returns one if |nid| is a supported CSR attribute type
1082 // for carrying extensions and zero otherwise. The supported types are
1083 // |NID_ext_req| (pkcs-9-at-extensionRequest from RFC 2985) and |NID_ms_ext_req|
1084 // (a Microsoft szOID_CERT_EXTENSIONS variant).
1086 
1087 // X509_REQ_get_extensions decodes the list of requested extensions in |req| and
1088 // returns a newly-allocated |STACK_OF(X509_EXTENSION)| containing the result.
1089 // It returns NULL on error, or if |req| did not request extensions.
1090 //
1091 // This function supports both pkcs-9-at-extensionRequest from RFC 2985 and the
1092 // Microsoft szOID_CERT_EXTENSIONS variant.
1094 
1095 // X509_REQ_add_extensions_nid adds an attribute to |req| of type |nid|, to
1096 // request the certificate extensions in |exts|. It returns one on success and
1097 // zero on error. |nid| should be |NID_ext_req| or |NID_ms_ext_req|.
1099  X509_REQ *req, const STACK_OF(X509_EXTENSION) *exts, int nid);
1100 
1101 // X509_REQ_add_extensions behaves like |X509_REQ_add_extensions_nid|, using the
1102 // standard |NID_ext_req| for the attribute type.
1104  X509_REQ *req, const STACK_OF(X509_EXTENSION) *exts);
1105 
1106 // X509_REQ_get_attr_count returns the number of attributes in |req|.
1108 
1109 // X509_REQ_get_attr_by_NID returns the index of the attribute in |req| of type
1110 // |nid|, or a negative number if not found. If found, callers can use
1111 // |X509_REQ_get_attr| to look up the attribute by index.
1112 //
1113 // If |lastpos| is non-negative, it begins searching at |lastpos| + 1. Callers
1114 // can thus loop over all matching attributes by first passing -1 and then
1115 // passing the previously-returned value until no match is returned.
1117  int lastpos);
1118 
1119 // X509_REQ_get_attr_by_OBJ behaves like |X509_REQ_get_attr_by_NID| but looks
1120 // for attributes of type |obj|.
1122  const ASN1_OBJECT *obj,
1123  int lastpos);
1124 
1125 // X509_REQ_get_attr returns the attribute at index |loc| in |req|, or NULL if
1126 // out of bounds.
1128 
1129 // X509_REQ_delete_attr removes the attribute at index |loc| in |req|. It
1130 // returns the removed attribute to the caller, or NULL if |loc| was out of
1131 // bounds. If non-NULL, the caller must release the result with
1132 // |X509_ATTRIBUTE_free| when done. It is also safe, but not necessary, to call
1133 // |X509_ATTRIBUTE_free| if the result is NULL.
1135 
1136 // X509_REQ_add1_attr appends a copy of |attr| to |req|'s list of attributes. It
1137 // returns one on success and zero on error.
1138 //
1139 // TODO(https://crbug.com/boringssl/407): |attr| should be const.
1141 
1142 // X509_REQ_add1_attr_by_OBJ appends a new attribute to |req| with type |obj|.
1143 // It returns one on success and zero on error. The value is determined by
1144 // |X509_ATTRIBUTE_set1_data|.
1145 //
1146 // WARNING: The interpretation of |attrtype|, |data|, and |len| is complex and
1147 // error-prone. See |X509_ATTRIBUTE_set1_data| for details.
1149  const ASN1_OBJECT *obj,
1150  int attrtype,
1151  const unsigned char *data,
1152  int len);
1153 
1154 // X509_REQ_add1_attr_by_NID behaves like |X509_REQ_add1_attr_by_OBJ| except the
1155 // attribute type is determined by |nid|.
1157  int attrtype,
1158  const unsigned char *data,
1159  int len);
1160 
1161 // X509_REQ_add1_attr_by_txt behaves like |X509_REQ_add1_attr_by_OBJ| except the
1162 // attribute type is determined by calling |OBJ_txt2obj| with |attrname|.
1164  const char *attrname, int attrtype,
1165  const unsigned char *data,
1166  int len);
1167 
1168 // X509_CRL_set_version sets |crl|'s version to |version|, which should be one
1169 // of the |X509_CRL_VERSION_*| constants. It returns one on success and zero on
1170 // error.
1171 //
1172 // If unsure, use |X509_CRL_VERSION_2|. Note that, unlike certificates, CRL
1173 // versions are only defined up to v2. Callers should not use |X509_VERSION_3|.
1175 
1176 // X509_CRL_set_issuer_name sets |crl|'s issuer to a copy of |name|. It returns
1177 // one on success and zero on error.
1179 
1181 
1182 // X509_CRL_up_ref adds one to the reference count of |crl| and returns one.
1184 
1185 // X509_CRL_get0_signature sets |*out_sig| and |*out_alg| to the signature and
1186 // signature algorithm of |crl|, respectively. Either output pointer may be NULL
1187 // to ignore the value.
1188 //
1189 // This function outputs the outer signature algorithm, not the one in the
1190 // TBSCertList. CRLs with mismatched signature algorithms will successfully
1191 // parse, but they will be rejected when verifying.
1193  const ASN1_BIT_STRING **out_sig,
1194  const X509_ALGOR **out_alg);
1195 
1196 // X509_CRL_get_signature_nid returns the NID corresponding to |crl|'s signature
1197 // algorithm, or |NID_undef| if the signature algorithm does not correspond to
1198 // a known NID.
1200 
1201 // i2d_re_X509_CRL_tbs serializes the TBSCertList portion of |crl|, as described
1202 // in |i2d_SAMPLE|.
1203 //
1204 // This function re-encodes the TBSCertList and may not reflect |crl|'s original
1205 // encoding. It may be used to manually generate a signature for a new CRL. To
1206 // verify CRLs, use |i2d_X509_CRL_tbs| instead.
1207 OPENSSL_EXPORT int i2d_re_X509_CRL_tbs(X509_CRL *crl, unsigned char **outp);
1208 
1209 // i2d_X509_CRL_tbs serializes the TBSCertList portion of |crl|, as described in
1210 // |i2d_SAMPLE|.
1211 //
1212 // This function preserves the original encoding of the TBSCertList and may not
1213 // reflect modifications made to |crl|. It may be used to manually verify the
1214 // signature of an existing CRL. To generate CRLs, use |i2d_re_X509_CRL_tbs|
1215 // instead.
1216 OPENSSL_EXPORT int i2d_X509_CRL_tbs(X509_CRL *crl, unsigned char **outp);
1217 
1218 // X509_CRL_set1_signature_algo sets |crl|'s signature algorithm to |algo| and
1219 // returns one on success or zero on error. It updates both the signature field
1220 // of the TBSCertList structure, and the signatureAlgorithm field of the CRL.
1222  const X509_ALGOR *algo);
1223 
1224 // X509_CRL_set1_signature_value sets |crl|'s signature to a copy of the
1225 // |sig_len| bytes pointed by |sig|. It returns one on success and zero on
1226 // error.
1227 //
1228 // Due to a specification error, X.509 CRLs store signatures in ASN.1 BIT
1229 // STRINGs, but signature algorithms return byte strings rather than bit
1230 // strings. This function creates a BIT STRING containing a whole number of
1231 // bytes, with the bit order matching the DER encoding. This matches the
1232 // encoding used by all X.509 signature algorithms.
1234  const uint8_t *sig,
1235  size_t sig_len);
1236 
1237 // X509_REVOKED_get0_serialNumber returns the serial number of the certificate
1238 // revoked by |revoked|.
1240  const X509_REVOKED *revoked);
1241 
1242 // X509_REVOKED_set_serialNumber sets |revoked|'s serial number to |serial|. It
1243 // returns one on success or zero on error.
1245  const ASN1_INTEGER *serial);
1246 
1247 // X509_REVOKED_get0_revocationDate returns the revocation time of the
1248 // certificate revoked by |revoked|.
1250  const X509_REVOKED *revoked);
1251 
1252 // X509_REVOKED_set_revocationDate sets |revoked|'s revocation time to |tm|. It
1253 // returns one on success or zero on error.
1255  const ASN1_TIME *tm);
1256 
1257 // X509_REVOKED_get0_extensions returns |r|'s extensions list, or NULL if |r|
1258 // omits it.
1260  const X509_REVOKED *r);
1261 
1263  EVP_PKEY *skey, const EVP_MD *md,
1264  unsigned int flags);
1265 
1267 
1268 OPENSSL_EXPORT int X509_check_private_key(X509 *x509, const EVP_PKEY *pkey);
1269 OPENSSL_EXPORT int X509_chain_check_suiteb(int *perror_depth, X509 *x,
1270  STACK_OF(X509) *chain,
1271  unsigned long flags);
1273  unsigned long flags);
1274 
1275 // X509_chain_up_ref returns a newly-allocated |STACK_OF(X509)| containing a
1276 // shallow copy of |chain|, or NULL on error. That is, the return value has the
1277 // same contents as |chain|, and each |X509|'s reference count is incremented by
1278 // one.
1280 
1282 
1283 OPENSSL_EXPORT int X509_issuer_name_cmp(const X509 *a, const X509 *b);
1284 OPENSSL_EXPORT unsigned long X509_issuer_name_hash(X509 *a);
1285 
1286 OPENSSL_EXPORT int X509_subject_name_cmp(const X509 *a, const X509 *b);
1288 
1291 
1292 OPENSSL_EXPORT int X509_cmp(const X509 *a, const X509 *b);
1293 OPENSSL_EXPORT int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b);
1294 OPENSSL_EXPORT unsigned long X509_NAME_hash(X509_NAME *x);
1296 
1297 OPENSSL_EXPORT int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b);
1298 OPENSSL_EXPORT int X509_CRL_match(const X509_CRL *a, const X509_CRL *b);
1299 OPENSSL_EXPORT int X509_print_ex_fp(FILE *bp, X509 *x, unsigned long nmflag,
1300  unsigned long cflag);
1305  int indent, unsigned long flags);
1306 
1307 OPENSSL_EXPORT int X509_NAME_print(BIO *bp, const X509_NAME *name, int obase);
1309  unsigned long flags);
1310 OPENSSL_EXPORT int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflag,
1311  unsigned long cflag);
1312 OPENSSL_EXPORT int X509_print(BIO *bp, X509 *x);
1316 OPENSSL_EXPORT int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag,
1317  unsigned long cflag);
1319 
1322  char *buf, int len);
1324  const ASN1_OBJECT *obj, char *buf,
1325  int len);
1326 
1327 // NOTE: you should be passsing -1, not 0 as lastpos. The functions that use
1328 // lastpos, search after that position on.
1330  int lastpos);
1332  const ASN1_OBJECT *obj,
1333  int lastpos);
1335  int loc);
1337  int loc);
1339  int loc, int set);
1341  int type,
1342  const unsigned char *bytes,
1343  int len, int loc, int set);
1345  int type,
1346  const unsigned char *bytes,
1347  int len, int loc, int set);
1349  X509_NAME_ENTRY **ne, const char *field, int type,
1350  const unsigned char *bytes, int len);
1352  X509_NAME_ENTRY **ne, int nid, int type, const unsigned char *bytes,
1353  int len);
1355  const char *field, int type,
1356  const unsigned char *bytes,
1357  int len, int loc, int set);
1359  X509_NAME_ENTRY **ne, const ASN1_OBJECT *obj, int type,
1360  const unsigned char *bytes, int len);
1362  const ASN1_OBJECT *obj);
1364  const unsigned char *bytes,
1365  int len);
1367  const X509_NAME_ENTRY *ne);
1369 
1370 // X509v3_get_ext_count returns the number of extensions in |x|.
1372 
1373 // X509v3_get_ext_by_NID returns the index of the first extension in |x| with
1374 // type |nid|, or a negative number if not found. If found, callers can use
1375 // |X509v3_get_ext| to look up the extension by index.
1376 //
1377 // If |lastpos| is non-negative, it begins searching at |lastpos| + 1. Callers
1378 // can thus loop over all matching extensions by first passing -1 and then
1379 // passing the previously-returned value until no match is returned.
1381  int nid, int lastpos);
1382 
1383 // X509v3_get_ext_by_OBJ behaves like |X509v3_get_ext_by_NID| but looks for
1384 // extensions matching |obj|.
1386  const ASN1_OBJECT *obj, int lastpos);
1387 
1388 // X509v3_get_ext_by_critical returns the index of the first extension in |x|
1389 // whose critical bit matches |crit|, or a negative number if no such extension
1390 // was found.
1391 //
1392 // If |lastpos| is non-negative, it begins searching at |lastpos| + 1. Callers
1393 // can thus loop over all matching extensions by first passing -1 and then
1394 // passing the previously-returned value until no match is returned.
1396  int crit, int lastpos);
1397 
1398 // X509v3_get_ext returns the extension in |x| at index |loc|, or NULL if |loc|
1399 // is out of bounds.
1401  int loc);
1402 
1403 // X509v3_delete_ext removes the extension in |x| at index |loc| and returns the
1404 // removed extension, or NULL if |loc| was out of bounds. If an extension was
1405 // returned, the caller must release it with |X509_EXTENSION_free|.
1407  int loc);
1408 
1409 // X509v3_add_ext adds a copy of |ex| to the extension list in |*x|. If |*x| is
1410 // NULL, it allocates a new |STACK_OF(X509_EXTENSION)| to hold the copy and sets
1411 // |*x| to the new list. It returns |*x| on success and NULL on error. The
1412 // caller retains ownership of |ex| and can release it independently of |*x|.
1413 //
1414 // The new extension is inserted at index |loc|, shifting extensions to the
1415 // right. If |loc| is -1 or out of bounds, the new extension is appended to the
1416 // list.
1419 
1420 // X509_get_ext_count returns the number of extensions in |x|.
1422 
1423 // X509_get_ext_by_NID behaves like |X509v3_get_ext_by_NID| but searches for
1424 // extensions in |x|.
1425 OPENSSL_EXPORT int X509_get_ext_by_NID(const X509 *x, int nid, int lastpos);
1426 
1427 // X509_get_ext_by_OBJ behaves like |X509v3_get_ext_by_OBJ| but searches for
1428 // extensions in |x|.
1430  int lastpos);
1431 
1432 // X509_get_ext_by_critical behaves like |X509v3_get_ext_by_critical| but
1433 // searches for extensions in |x|.
1434 OPENSSL_EXPORT int X509_get_ext_by_critical(const X509 *x, int crit,
1435  int lastpos);
1436 
1437 // X509_get_ext returns the extension in |x| at index |loc|, or NULL if |loc| is
1438 // out of bounds.
1440 
1441 // X509_delete_ext removes the extension in |x| at index |loc| and returns the
1442 // removed extension, or NULL if |loc| was out of bounds. If non-NULL, the
1443 // caller must release the result with |X509_EXTENSION_free|. It is also safe,
1444 // but not necessary, to call |X509_EXTENSION_free| if the result is NULL.
1446 
1447 // X509_add_ext adds a copy of |ex| to |x|. It returns one on success and zero
1448 // on failure. The caller retains ownership of |ex| and can release it
1449 // independently of |x|.
1450 //
1451 // The new extension is inserted at index |loc|, shifting extensions to the
1452 // right. If |loc| is -1 or out of bounds, the new extension is appended to the
1453 // list.
1455 
1456 // X509_get_ext_d2i behaves like |X509V3_get_d2i| but looks for the extension in
1457 // |x509|'s extension list.
1458 //
1459 // WARNING: This function is difficult to use correctly. See the documentation
1460 // for |X509V3_get_d2i| for details.
1461 OPENSSL_EXPORT void *X509_get_ext_d2i(const X509 *x509, int nid,
1462  int *out_critical, int *out_idx);
1463 
1464 // X509_add1_ext_i2d behaves like |X509V3_add1_i2d| but adds the extension to
1465 // |x|'s extension list.
1466 //
1467 // WARNING: This function may return zero or -1 on error. The caller must also
1468 // ensure |value|'s type matches |nid|. See the documentation for
1469 // |X509V3_add1_i2d| for details.
1470 OPENSSL_EXPORT int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit,
1471  unsigned long flags);
1472 
1473 // X509_CRL_get_ext_count returns the number of extensions in |x|.
1475 
1476 // X509_CRL_get_ext_by_NID behaves like |X509v3_get_ext_by_NID| but searches for
1477 // extensions in |x|.
1479  int lastpos);
1480 
1481 // X509_CRL_get_ext_by_OBJ behaves like |X509v3_get_ext_by_OBJ| but searches for
1482 // extensions in |x|.
1484  const ASN1_OBJECT *obj, int lastpos);
1485 
1486 // X509_CRL_get_ext_by_critical behaves like |X509v3_get_ext_by_critical| but
1487 // searches for extensions in |x|.
1489  int lastpos);
1490 
1491 // X509_CRL_get_ext returns the extension in |x| at index |loc|, or NULL if
1492 // |loc| is out of bounds.
1494 
1495 // X509_CRL_delete_ext removes the extension in |x| at index |loc| and returns
1496 // the removed extension, or NULL if |loc| was out of bounds. If non-NULL, the
1497 // caller must release the result with |X509_EXTENSION_free|. It is also safe,
1498 // but not necessary, to call |X509_EXTENSION_free| if the result is NULL.
1500 
1501 // X509_CRL_add_ext adds a copy of |ex| to |x|. It returns one on success and
1502 // zero on failure. The caller retains ownership of |ex| and can release it
1503 // independently of |x|.
1504 //
1505 // The new extension is inserted at index |loc|, shifting extensions to the
1506 // right. If |loc| is -1 or out of bounds, the new extension is appended to the
1507 // list.
1509 
1510 // X509_CRL_get_ext_d2i behaves like |X509V3_get_d2i| but looks for the
1511 // extension in |crl|'s extension list.
1512 //
1513 // WARNING: This function is difficult to use correctly. See the documentation
1514 // for |X509V3_get_d2i| for details.
1515 OPENSSL_EXPORT void *X509_CRL_get_ext_d2i(const X509_CRL *crl, int nid,
1516  int *out_critical, int *out_idx);
1517 
1518 // X509_CRL_add1_ext_i2d behaves like |X509V3_add1_i2d| but adds the extension
1519 // to |x|'s extension list.
1520 //
1521 // WARNING: This function may return zero or -1 on error. The caller must also
1522 // ensure |value|'s type matches |nid|. See the documentation for
1523 // |X509V3_add1_i2d| for details.
1525  int crit, unsigned long flags);
1526 
1527 // X509_REVOKED_get_ext_count returns the number of extensions in |x|.
1529 
1530 // X509_REVOKED_get_ext_by_NID behaves like |X509v3_get_ext_by_NID| but searches
1531 // for extensions in |x|.
1533  int lastpos);
1534 
1535 // X509_REVOKED_get_ext_by_OBJ behaves like |X509v3_get_ext_by_OBJ| but searches
1536 // for extensions in |x|.
1538  const ASN1_OBJECT *obj,
1539  int lastpos);
1540 
1541 // X509_REVOKED_get_ext_by_critical behaves like |X509v3_get_ext_by_critical|
1542 // but searches for extensions in |x|.
1544  int crit, int lastpos);
1545 
1546 // X509_REVOKED_get_ext returns the extension in |x| at index |loc|, or NULL if
1547 // |loc| is out of bounds.
1549  int loc);
1550 
1551 // X509_REVOKED_delete_ext removes the extension in |x| at index |loc| and
1552 // returns the removed extension, or NULL if |loc| was out of bounds. If
1553 // non-NULL, the caller must release the result with |X509_EXTENSION_free|. It
1554 // is also safe, but not necessary, to call |X509_EXTENSION_free| if the result
1555 // is NULL.
1557  int loc);
1558 
1559 // X509_REVOKED_add_ext adds a copy of |ex| to |x|. It returns one on success
1560 // and zero on failure. The caller retains ownership of |ex| and can release it
1561 // independently of |x|.
1562 //
1563 // The new extension is inserted at index |loc|, shifting extensions to the
1564 // right. If |loc| is -1 or out of bounds, the new extension is appended to the
1565 // list.
1567  int loc);
1568 
1569 // X509_REVOKED_get_ext_d2i behaves like |X509V3_get_d2i| but looks for the
1570 // extension in |revoked|'s extension list.
1571 //
1572 // WARNING: This function is difficult to use correctly. See the documentation
1573 // for |X509V3_get_d2i| for details.
1575  int nid, int *out_critical,
1576  int *out_idx);
1577 
1578 // X509_REVOKED_add1_ext_i2d behaves like |X509V3_add1_i2d| but adds the
1579 // extension to |x|'s extension list.
1580 //
1581 // WARNING: This function may return zero or -1 on error. The caller must also
1582 // ensure |value|'s type matches |nid|. See the documentation for
1583 // |X509V3_add1_i2d| for details.
1585  void *value, int crit,
1586  unsigned long flags);
1587 
1588 // X509_EXTENSION_create_by_NID creates a new |X509_EXTENSION| with type |nid|,
1589 // value |data|, and critical bit |crit|. It returns the newly-allocated
1590 // |X509_EXTENSION| on success, and false on error. |nid| should be a |NID_*|
1591 // constant.
1592 //
1593 // If |ex| and |*ex| are both non-NULL, it modifies and returns |*ex| instead of
1594 // creating a new object. If |ex| is non-NULL, but |*ex| is NULL, it sets |*ex|
1595 // to the new |X509_EXTENSION|, in addition to returning the result.
1597  X509_EXTENSION **ex, int nid, int crit, const ASN1_OCTET_STRING *data);
1598 
1599 // X509_EXTENSION_create_by_OBJ behaves like |X509_EXTENSION_create_by_NID|, but
1600 // the extension type is determined by an |ASN1_OBJECT|.
1602  X509_EXTENSION **ex, const ASN1_OBJECT *obj, int crit,
1603  const ASN1_OCTET_STRING *data);
1604 
1605 // X509_EXTENSION_set_object sets |ex|'s extension type to |obj|. It returns one
1606 // on success and zero on error.
1608  const ASN1_OBJECT *obj);
1609 
1610 // X509_EXTENSION_set_critical sets |ex| to critical if |crit| is non-zero and
1611 // to non-critical if |crit| is zero.
1613 
1614 // X509_EXTENSION_set_data set's |ex|'s extension value to a copy of |data|. It
1615 // returns one on success and zero on error.
1617  const ASN1_OCTET_STRING *data);
1618 
1619 // X509_EXTENSION_get_object returns |ex|'s extension type.
1621 
1622 // X509_EXTENSION_get_data returns |ne|'s extension value.
1624 
1625 // X509_EXTENSION_get_critical returns one if |ex| is critical and zero
1626 // otherwise.
1628 
1629 // X509at_get_attr_count returns the number of attributes in |x|.
1631 
1632 // X509at_get_attr_by_NID returns the index of the attribute in |x| of type
1633 // |nid|, or a negative number if not found. If found, callers can use
1634 // |X509at_get_attr| to look up the attribute by index.
1635 //
1636 // If |lastpos| is non-negative, it begins searching at |lastpos| + 1. Callers
1637 // can thus loop over all matching attributes by first passing -1 and then
1638 // passing the previously-returned value until no match is returned.
1640  int nid, int lastpos);
1641 
1642 // X509at_get_attr_by_OBJ behaves like |X509at_get_attr_by_NID| but looks for
1643 // attributes of type |obj|.
1645  const ASN1_OBJECT *obj, int lastpos);
1646 
1647 // X509at_get_attr returns the attribute at index |loc| in |x|, or NULL if
1648 // out of bounds.
1650  const STACK_OF(X509_ATTRIBUTE) *x, int loc);
1651 
1652 // X509at_delete_attr removes the attribute at index |loc| in |x|. It returns
1653 // the removed attribute to the caller, or NULL if |loc| was out of bounds. If
1654 // non-NULL, the caller must release the result with |X509_ATTRIBUTE_free| when
1655 // done. It is also safe, but not necessary, to call |X509_ATTRIBUTE_free| if
1656 // the result is NULL.
1658  int loc);
1659 
1660 // X509at_add1_attr appends a copy of |attr| to the attribute list in |*x|. If
1661 // |*x| is NULL, it allocates a new |STACK_OF(X509_ATTRIBUTE)| to hold the copy
1662 // and sets |*x| to the new list. It returns |*x| on success and NULL on error.
1663 // The caller retains ownership of |attr| and can release it independently of
1664 // |*x|.
1667 
1668 // X509at_add1_attr_by_OBJ behaves like |X509at_add1_attr|, but adds an
1669 // attribute created by |X509_ATTRIBUTE_create_by_OBJ|.
1672  const unsigned char *bytes, int len);
1673 
1674 // X509at_add1_attr_by_NID behaves like |X509at_add1_attr|, but adds an
1675 // attribute created by |X509_ATTRIBUTE_create_by_NID|.
1677  STACK_OF(X509_ATTRIBUTE) **x, int nid, int type, const unsigned char *bytes,
1678  int len);
1679 
1680 // X509at_add1_attr_by_txt behaves like |X509at_add1_attr|, but adds an
1681 // attribute created by |X509_ATTRIBUTE_create_by_txt|.
1683  STACK_OF(X509_ATTRIBUTE) **x, const char *attrname, int type,
1684  const unsigned char *bytes, int len);
1685 
1686 // X509_ATTRIBUTE_create_by_NID returns a newly-allocated |X509_ATTRIBUTE| of
1687 // type |nid|, or NULL on error. The value is determined as in
1688 // |X509_ATTRIBUTE_set1_data|.
1689 //
1690 // If |attr| is non-NULL, the resulting |X509_ATTRIBUTE| is also written to
1691 // |*attr|. If |*attr| was non-NULL when the function was called, |*attr| is
1692 // reused instead of creating a new object.
1693 //
1694 // WARNING: The interpretation of |attrtype|, |data|, and |len| is complex and
1695 // error-prone. See |X509_ATTRIBUTE_set1_data| for details.
1696 //
1697 // WARNING: The object reuse form is deprecated and may be removed in the
1698 // future. It also currently incorrectly appends to the reused object's value
1699 // set rather than overwriting it.
1701  X509_ATTRIBUTE **attr, int nid, int attrtype, const void *data, int len);
1702 
1703 // X509_ATTRIBUTE_create_by_OBJ behaves like |X509_ATTRIBUTE_create_by_NID|
1704 // except the attribute's type is determined by |obj|.
1706  X509_ATTRIBUTE **attr, const ASN1_OBJECT *obj, int attrtype,
1707  const void *data, int len);
1708 
1709 // X509_ATTRIBUTE_create_by_txt behaves like |X509_ATTRIBUTE_create_by_NID|
1710 // except the attribute's type is determined by calling |OBJ_txt2obj| with
1711 // |attrname|.
1713  X509_ATTRIBUTE **attr, const char *attrname, int type,
1714  const unsigned char *bytes, int len);
1715 
1716 // X509_ATTRIBUTE_set1_object sets |attr|'s type to |obj|. It returns one on
1717 // success and zero on error.
1719  const ASN1_OBJECT *obj);
1720 
1721 // X509_ATTRIBUTE_set1_data appends a value to |attr|'s value set and returns
1722 // one on success or zero on error. The value is determined as follows:
1723 //
1724 // If |attrtype| is a |MBSTRING_*| constant, the value is an ASN.1 string. The
1725 // string is determined by decoding |len| bytes from |data| in the encoding
1726 // specified by |attrtype|, and then re-encoding it in a form appropriate for
1727 // |attr|'s type. If |len| is -1, |strlen(data)| is used instead. See
1728 // |ASN1_STRING_set_by_NID| for details.
1729 //
1730 // TODO(davidben): Document |ASN1_STRING_set_by_NID| so the reference is useful.
1731 //
1732 // Otherwise, if |len| is not -1, the value is an ASN.1 string. |attrtype| is an
1733 // |ASN1_STRING| type value and the |len| bytes from |data| are copied as the
1734 // type-specific representation of |ASN1_STRING|. See |ASN1_STRING| for details.
1735 //
1736 // WARNING: If this form is used to construct a negative INTEGER or ENUMERATED,
1737 // |attrtype| includes the |V_ASN1_NEG| flag for |ASN1_STRING|, but the function
1738 // forgets to clear the flag for |ASN1_TYPE|. This matches OpenSSL but is
1739 // probably a bug. For now, do not use this form with negative values.
1740 //
1741 // Otherwise, if |len| is -1, the value is constructed by passing |attrtype| and
1742 // |data| to |ASN1_TYPE_set1|. That is, |attrtype| is an |ASN1_TYPE| type value,
1743 // and |data| is cast to the corresponding pointer type.
1744 //
1745 // WARNING: Despite the name, this function appends to |attr|'s value set,
1746 // rather than overwriting it. To overwrite the value set, create a new
1747 // |X509_ATTRIBUTE| with |X509_ATTRIBUTE_new|.
1748 //
1749 // WARNING: If using the |MBSTRING_*| form, pass a length rather than relying on
1750 // |strlen|. In particular, |strlen| will not behave correctly if the input is
1751 // |MBSTRING_BMP| or |MBSTRING_UNIV|.
1752 //
1753 // WARNING: This function currently misinterprets |V_ASN1_OTHER| as an
1754 // |MBSTRING_*| constant. This matches OpenSSL but means it is impossible to
1755 // construct a value with a non-universal tag.
1757  const void *data, int len);
1758 
1759 // X509_ATTRIBUTE_get0_data returns the |idx|th value of |attr| in a
1760 // type-specific representation to |attrtype|, or NULL if out of bounds or the
1761 // type does not match. |attrtype| is one of the type values in |ASN1_TYPE|. On
1762 // match, the return value uses the same representation as |ASN1_TYPE_set0|. See
1763 // |ASN1_TYPE| for details.
1765  int attrtype, void *unused);
1766 
1767 // X509_ATTRIBUTE_count returns the number of values in |attr|.
1769 
1770 // X509_ATTRIBUTE_get0_object returns the type of |attr|.
1772 
1773 // X509_ATTRIBUTE_get0_type returns the |idx|th value in |attr|, or NULL if out
1774 // of bounds. Note this function returns one of |attr|'s values, not the type.
1776  int idx);
1777 
1779 
1780 // lookup a cert from a X509 STACK
1782  X509_NAME *name,
1783  ASN1_INTEGER *serial);
1785 
1786 // PKCS#8 utilities
1787 
1789 
1792 
1794  int version, int ptype, void *pval,
1795  unsigned char *penc, int penclen);
1797  const unsigned char **pk, int *ppklen,
1798  X509_ALGOR **pa, PKCS8_PRIV_KEY_INFO *p8);
1799 
1800 // X509_PUBKEY_set0_param sets |pub| to a key with AlgorithmIdentifier
1801 // determined by |obj|, |param_type|, and |param_value|, and an encoded
1802 // public key of |key|. On success, it takes ownership of all its parameters and
1803 // returns one. Otherwise, it returns zero. |key| must have been allocated by
1804 // |OPENSSL_malloc|.
1805 //
1806 // |obj|, |param_type|, and |param_value| are interpreted as in
1807 // |X509_ALGOR_set0|. See |X509_ALGOR_set0| for details.
1809  int param_type, void *param_value,
1810  uint8_t *key, int key_len);
1811 
1812 // X509_PUBKEY_get0_param outputs fields of |pub| and returns one. If |out_obj|
1813 // is not NULL, it sets |*out_obj| to AlgorithmIdentifier's OID. If |out_key|
1814 // is not NULL, it sets |*out_key| and |*out_key_len| to the encoded public key.
1815 // If |out_alg| is not NULL, it sets |*out_alg| to the AlgorithmIdentifier.
1816 //
1817 // Note: X.509 SubjectPublicKeyInfo structures store the encoded public key as a
1818 // BIT STRING. |*out_key| and |*out_key_len| will silently pad the key with zero
1819 // bits if |pub| did not contain a whole number of bytes. Use
1820 // |X509_PUBKEY_get0_public_key| to preserve this information.
1822  const uint8_t **out_key,
1823  int *out_key_len,
1824  X509_ALGOR **out_alg,
1825  X509_PUBKEY *pub);
1826 
1827 // X509_PUBKEY_get0_public_key returns |pub|'s encoded public key.
1829  const X509_PUBKEY *pub);
1830 
1831 OPENSSL_EXPORT int X509_check_trust(X509 *x, int id, int flags);
1835 OPENSSL_EXPORT int X509_TRUST_add(int id, int flags,
1836  int (*ck)(X509_TRUST *, X509 *, int),
1837  char *name, int arg1, void *arg2);
1842 
1843 
1849  // OpenSSL caches the MGF hash on |RSA_PSS_PARAMS| in some cases. None of the
1850  // cases apply to BoringSSL, so this is always NULL, but Node expects the
1851  // field to be present.
1853 } /* RSA_PSS_PARAMS */;
1854 
1856 
1857 /*
1858 SSL_CTX -> X509_STORE
1859  -> X509_LOOKUP
1860  ->X509_LOOKUP_METHOD
1861  -> X509_LOOKUP
1862  ->X509_LOOKUP_METHOD
1863 
1864 SSL -> X509_STORE_CTX
1865  ->X509_STORE
1866 
1867 The X509_STORE holds the tables etc for verification stuff.
1868 A X509_STORE_CTX is used while validating a single certificate.
1869 The X509_STORE has X509_LOOKUPs for looking up certs.
1870 The X509_STORE then calls a function to actually verify the
1871 certificate chain.
1872 */
1873 
1874 #define X509_LU_X509 1
1875 #define X509_LU_CRL 2
1876 #define X509_LU_PKEY 3
1877 
1881 
1885  X509 *x);
1887  X509 *issuer);
1890  X509 *x);
1893  X509 *x);
1895 typedef STACK_OF(X509) *(*X509_STORE_CTX_lookup_certs_fn)(X509_STORE_CTX *ctx,
1897 typedef STACK_OF(X509_CRL) *(*X509_STORE_CTX_lookup_crls_fn)(
1900 
1902 
1904 
1905 #define X509_STORE_CTX_set_app_data(ctx, data) \
1906  X509_STORE_CTX_set_ex_data(ctx, 0, data)
1907 #define X509_STORE_CTX_get_app_data(ctx) X509_STORE_CTX_get_ex_data(ctx, 0)
1908 
1909 #define X509_L_FILE_LOAD 1
1910 #define X509_L_ADD_DIR 2
1911 
1912 #define X509_LOOKUP_load_file(x, name, type) \
1913  X509_LOOKUP_ctrl((x), X509_L_FILE_LOAD, (name), (long)(type), NULL)
1914 
1915 #define X509_LOOKUP_add_dir(x, name, type) \
1916  X509_LOOKUP_ctrl((x), X509_L_ADD_DIR, (name), (long)(type), NULL)
1917 
1918 #define X509_V_OK 0
1919 #define X509_V_ERR_UNSPECIFIED 1
1920 
1921 #define X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT 2
1922 #define X509_V_ERR_UNABLE_TO_GET_CRL 3
1923 #define X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE 4
1924 #define X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE 5
1925 #define X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY 6
1926 #define X509_V_ERR_CERT_SIGNATURE_FAILURE 7
1927 #define X509_V_ERR_CRL_SIGNATURE_FAILURE 8
1928 #define X509_V_ERR_CERT_NOT_YET_VALID 9
1929 #define X509_V_ERR_CERT_HAS_EXPIRED 10
1930 #define X509_V_ERR_CRL_NOT_YET_VALID 11
1931 #define X509_V_ERR_CRL_HAS_EXPIRED 12
1932 #define X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD 13
1933 #define X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD 14
1934 #define X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD 15
1935 #define X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD 16
1936 #define X509_V_ERR_OUT_OF_MEM 17
1937 #define X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT 18
1938 #define X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN 19
1939 #define X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY 20
1940 #define X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE 21
1941 #define X509_V_ERR_CERT_CHAIN_TOO_LONG 22
1942 #define X509_V_ERR_CERT_REVOKED 23
1943 #define X509_V_ERR_INVALID_CA 24
1944 #define X509_V_ERR_PATH_LENGTH_EXCEEDED 25
1945 #define X509_V_ERR_INVALID_PURPOSE 26
1946 #define X509_V_ERR_CERT_UNTRUSTED 27
1947 #define X509_V_ERR_CERT_REJECTED 28
1948 // These are 'informational' when looking for issuer cert
1949 #define X509_V_ERR_SUBJECT_ISSUER_MISMATCH 29
1950 #define X509_V_ERR_AKID_SKID_MISMATCH 30
1951 #define X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH 31
1952 #define X509_V_ERR_KEYUSAGE_NO_CERTSIGN 32
1953 
1954 #define X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER 33
1955 #define X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION 34
1956 #define X509_V_ERR_KEYUSAGE_NO_CRL_SIGN 35
1957 #define X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION 36
1958 #define X509_V_ERR_INVALID_NON_CA 37
1959 #define X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED 38
1960 #define X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE 39
1961 #define X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED 40
1962 
1963 #define X509_V_ERR_INVALID_EXTENSION 41
1964 #define X509_V_ERR_INVALID_POLICY_EXTENSION 42
1965 #define X509_V_ERR_NO_EXPLICIT_POLICY 43
1966 #define X509_V_ERR_DIFFERENT_CRL_SCOPE 44
1967 #define X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE 45
1968 
1969 #define X509_V_ERR_UNNESTED_RESOURCE 46
1970 
1971 #define X509_V_ERR_PERMITTED_VIOLATION 47
1972 #define X509_V_ERR_EXCLUDED_VIOLATION 48
1973 #define X509_V_ERR_SUBTREE_MINMAX 49
1974 #define X509_V_ERR_APPLICATION_VERIFICATION 50
1975 #define X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE 51
1976 #define X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX 52
1977 #define X509_V_ERR_UNSUPPORTED_NAME_SYNTAX 53
1978 #define X509_V_ERR_CRL_PATH_VALIDATION_ERROR 54
1979 
1980 // Suite B mode algorithm violation
1981 #define X509_V_ERR_SUITE_B_INVALID_VERSION 56
1982 #define X509_V_ERR_SUITE_B_INVALID_ALGORITHM 57
1983 #define X509_V_ERR_SUITE_B_INVALID_CURVE 58
1984 #define X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM 59
1985 #define X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED 60
1986 #define X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 61
1987 
1988 // Host, email and IP check errors
1989 #define X509_V_ERR_HOSTNAME_MISMATCH 62
1990 #define X509_V_ERR_EMAIL_MISMATCH 63
1991 #define X509_V_ERR_IP_ADDRESS_MISMATCH 64
1992 
1993 // Caller error
1994 #define X509_V_ERR_INVALID_CALL 65
1995 // Issuer lookup error
1996 #define X509_V_ERR_STORE_LOOKUP 66
1997 
1998 #define X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS 67
1999 
2000 // Certificate verify flags
2001 
2002 // Send issuer+subject checks to verify_cb
2003 #define X509_V_FLAG_CB_ISSUER_CHECK 0x1
2004 // Use check time instead of current time
2005 #define X509_V_FLAG_USE_CHECK_TIME 0x2
2006 // Lookup CRLs
2007 #define X509_V_FLAG_CRL_CHECK 0x4
2008 // Lookup CRLs for whole chain
2009 #define X509_V_FLAG_CRL_CHECK_ALL 0x8
2010 // Ignore unhandled critical extensions
2011 #define X509_V_FLAG_IGNORE_CRITICAL 0x10
2012 // Does nothing as its functionality has been enabled by default.
2013 #define X509_V_FLAG_X509_STRICT 0x00
2014 // Enable proxy certificate validation
2015 #define X509_V_FLAG_ALLOW_PROXY_CERTS 0x40
2016 // Enable policy checking
2017 #define X509_V_FLAG_POLICY_CHECK 0x80
2018 // Policy variable require-explicit-policy
2019 #define X509_V_FLAG_EXPLICIT_POLICY 0x100
2020 // Policy variable inhibit-any-policy
2021 #define X509_V_FLAG_INHIBIT_ANY 0x200
2022 // Policy variable inhibit-policy-mapping
2023 #define X509_V_FLAG_INHIBIT_MAP 0x400
2024 // Notify callback that policy is OK
2025 #define X509_V_FLAG_NOTIFY_POLICY 0x800
2026 // Extended CRL features such as indirect CRLs, alternate CRL signing keys
2027 #define X509_V_FLAG_EXTENDED_CRL_SUPPORT 0x1000
2028 // Delta CRL support
2029 #define X509_V_FLAG_USE_DELTAS 0x2000
2030 // Check selfsigned CA signature
2031 #define X509_V_FLAG_CHECK_SS_SIGNATURE 0x4000
2032 // Use trusted store first
2033 #define X509_V_FLAG_TRUSTED_FIRST 0x8000
2034 // Suite B 128 bit only mode: not normally used
2035 #define X509_V_FLAG_SUITEB_128_LOS_ONLY 0x10000
2036 // Suite B 192 bit only mode
2037 #define X509_V_FLAG_SUITEB_192_LOS 0x20000
2038 // Suite B 128 bit mode allowing 192 bit algorithms
2039 #define X509_V_FLAG_SUITEB_128_LOS 0x30000
2040 
2041 // Allow partial chains if at least one certificate is in trusted store
2042 #define X509_V_FLAG_PARTIAL_CHAIN 0x80000
2043 
2044 // If the initial chain is not trusted, do not attempt to build an alternative
2045 // chain. Alternate chain checking was introduced in 1.0.2b. Setting this flag
2046 // will force the behaviour to match that of previous versions.
2047 #define X509_V_FLAG_NO_ALT_CHAINS 0x100000
2048 
2049 #define X509_VP_FLAG_DEFAULT 0x1
2050 #define X509_VP_FLAG_OVERWRITE 0x2
2051 #define X509_VP_FLAG_RESET_FLAGS 0x4
2052 #define X509_VP_FLAG_LOCKED 0x8
2053 #define X509_VP_FLAG_ONCE 0x10
2054 
2055 // Internal use: mask of policy related options
2056 #define X509_V_FLAG_POLICY_MASK \
2057  (X509_V_FLAG_POLICY_CHECK | X509_V_FLAG_EXPLICIT_POLICY | \
2058  X509_V_FLAG_INHIBIT_ANY | X509_V_FLAG_INHIBIT_MAP)
2059 
2061  int type, X509_NAME *name);
2063  STACK_OF(X509_OBJECT) *h, int type, X509_NAME *name);
2065  X509_OBJECT *x);
2073 
2076  X509_NAME *nm);
2078  X509_NAME *nm);
2083  X509_VERIFY_PARAM *pm);
2085 
2088 #define X509_STORE_set_verify_func(ctx, func) \
2089  X509_STORE_set_verify((ctx), (func))
2095 #define X509_STORE_set_verify_cb_func(ctx, func) \
2096  X509_STORE_set_verify_cb((ctx), (func))
2112  X509_STORE_CTX_get_crl_fn get_crl);
2124  X509_STORE *ctx, X509_STORE_CTX_lookup_certs_fn lookup_certs);
2125 OPENSSL_EXPORT X509_STORE_CTX_lookup_certs_fn
2128  X509_STORE *ctx, X509_STORE_CTX_lookup_crls_fn lookup_crls);
2129 #define X509_STORE_set_lookup_crls_cb(ctx, func) \
2130  X509_STORE_set_lookup_crls((ctx), (func))
2131 OPENSSL_EXPORT X509_STORE_CTX_lookup_crls_fn
2137 
2139 
2141  X509_STORE_CTX *ctx, X509 *x);
2142 
2146  X509 *x509, STACK_OF(X509) *chain);
2148  STACK_OF(X509) *sk);
2150 
2153 
2156 
2159 
2162 
2165 
2166 OPENSSL_EXPORT int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,
2167  long argl, char **ret);
2168 
2169 #ifndef OPENSSL_NO_STDIO
2171  int type);
2173  int type);
2175  int type);
2176 #endif
2177 
2184  X509_NAME *name,
2185  ASN1_INTEGER *serial,
2186  X509_OBJECT *ret);
2188  unsigned char *bytes, int len,
2189  X509_OBJECT *ret);
2191  int len, X509_OBJECT *ret);
2193 
2194 #ifndef OPENSSL_NO_STDIO
2196  const char *dir);
2198 #endif
2199 
2201  CRYPTO_EX_unused *unused,
2202  CRYPTO_EX_dup *dup_unused,
2203  CRYPTO_EX_free *free_func);
2205  void *data);
2214  X509_STORE_CTX *ctx);
2220  STACK_OF(X509) *sk);
2222  X509_STORE_CTX *ctx);
2224  STACK_OF(X509_CRL) *sk);
2228  int def_purpose, int purpose,
2229  int trust);
2231  unsigned long flags);
2233  unsigned long flags, time_t t);
2235  X509_STORE_CTX *ctx, int (*verify_cb)(int, X509_STORE_CTX *));
2236 
2238  X509_STORE_CTX *ctx);
2240 
2242  X509_STORE_CTX *ctx);
2244  X509_VERIFY_PARAM *param);
2246  const char *name);
2247 
2248 // X509_VERIFY_PARAM functions
2249 
2253  const X509_VERIFY_PARAM *from);
2255  const X509_VERIFY_PARAM *from);
2257  const char *name);
2259  unsigned long flags);
2261  unsigned long flags);
2263  X509_VERIFY_PARAM *param);
2265  int purpose);
2267  int trust);
2269  int depth);
2271  time_t t);
2273  ASN1_OBJECT *policy);
2275  X509_VERIFY_PARAM *param, STACK_OF(ASN1_OBJECT) *policies);
2276 
2278  const char *name,
2279  size_t namelen);
2281  const char *name,
2282  size_t namelen);
2284  unsigned int flags);
2287  const char *email,
2288  size_t emaillen);
2290  const unsigned char *ip,
2291  size_t iplen);
2293  const char *ipasc);
2294 
2297  const X509_VERIFY_PARAM *param);
2298 
2303  const char *name);
2305 
2307  int *pexplicit_policy,
2308  STACK_OF(X509) *certs,
2309  STACK_OF(ASN1_OBJECT) *policy_oids,
2310  unsigned int flags);
2311 
2313 
2316  const X509_POLICY_TREE *tree, int i);
2317 
2319  const X509_POLICY_TREE *tree);
2320 
2322  const X509_POLICY_TREE *tree);
2323 
2325 
2327  X509_POLICY_LEVEL *level, int i);
2328 
2330  const X509_POLICY_NODE *node);
2331 
2333  const X509_POLICY_NODE *node);
2335  const X509_POLICY_NODE *node);
2336 
2337 
2338 #if defined(__cplusplus)
2339 } // extern C
2340 #endif
2341 
2342 #if !defined(BORINGSSL_NO_CXX)
2343 extern "C++" {
2344 
2346 
2371 
2373 
2374 } // extern C++
2375 #endif // !BORINGSSL_NO_CXX
2376 
2377 #define X509_R_AKID_MISMATCH 100
2378 #define X509_R_BAD_PKCS7_VERSION 101
2379 #define X509_R_BAD_X509_FILETYPE 102
2380 #define X509_R_BASE64_DECODE_ERROR 103
2381 #define X509_R_CANT_CHECK_DH_KEY 104
2382 #define X509_R_CERT_ALREADY_IN_HASH_TABLE 105
2383 #define X509_R_CRL_ALREADY_DELTA 106
2384 #define X509_R_CRL_VERIFY_FAILURE 107
2385 #define X509_R_IDP_MISMATCH 108
2386 #define X509_R_INVALID_BIT_STRING_BITS_LEFT 109
2387 #define X509_R_INVALID_DIRECTORY 110
2388 #define X509_R_INVALID_FIELD_NAME 111
2389 #define X509_R_INVALID_PSS_PARAMETERS 112
2390 #define X509_R_INVALID_TRUST 113
2391 #define X509_R_ISSUER_MISMATCH 114
2392 #define X509_R_KEY_TYPE_MISMATCH 115
2393 #define X509_R_KEY_VALUES_MISMATCH 116
2394 #define X509_R_LOADING_CERT_DIR 117
2395 #define X509_R_LOADING_DEFAULTS 118
2396 #define X509_R_NEWER_CRL_NOT_NEWER 119
2397 #define X509_R_NOT_PKCS7_SIGNED_DATA 120
2398 #define X509_R_NO_CERTIFICATES_INCLUDED 121
2399 #define X509_R_NO_CERT_SET_FOR_US_TO_VERIFY 122
2400 #define X509_R_NO_CRLS_INCLUDED 123
2401 #define X509_R_NO_CRL_NUMBER 124
2402 #define X509_R_PUBLIC_KEY_DECODE_ERROR 125
2403 #define X509_R_PUBLIC_KEY_ENCODE_ERROR 126
2404 #define X509_R_SHOULD_RETRY 127
2405 #define X509_R_UNKNOWN_KEY_TYPE 128
2406 #define X509_R_UNKNOWN_NID 129
2407 #define X509_R_UNKNOWN_PURPOSE_ID 130
2408 #define X509_R_UNKNOWN_TRUST_ID 131
2409 #define X509_R_UNSUPPORTED_ALGORITHM 132
2410 #define X509_R_WRONG_LOOKUP_TYPE 133
2411 #define X509_R_WRONG_TYPE 134
2412 #define X509_R_NAME_TOO_LONG 135
2413 #define X509_R_INVALID_PARAMETER 136
2414 #define X509_R_SIGNATURE_ALGORITHM_MISMATCH 137
2415 #define X509_R_DELTA_CRL_WITHOUT_CRL_NUMBER 138
2416 #define X509_R_INVALID_FIELD_FOR_VERSION 139
2417 #define X509_R_INVALID_VERSION 140
2418 
2419 #endif
X509_OBJECT_get_type
OPENSSL_EXPORT int X509_OBJECT_get_type(const X509_OBJECT *a)
Definition: x509_lu.c:432
X509_VERIFY_PARAM_inherit
OPENSSL_EXPORT int X509_VERIFY_PARAM_inherit(X509_VERIFY_PARAM *to, const X509_VERIFY_PARAM *from)
Definition: x509_vpm.c:232
d2i_X509_bio
OPENSSL_EXPORT X509 * d2i_X509_bio(BIO *bp, X509 **x509)
Definition: x_all.c:153
X509_NAME_cmp
OPENSSL_EXPORT int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b)
Definition: x509_cmp.c:182
i2d_X509_CRL_tbs
OPENSSL_EXPORT int i2d_X509_CRL_tbs(X509_CRL *crl, unsigned char **outp)
Definition: x509cset.c:250
X509_ATTRIBUTE_dup
OPENSSL_EXPORT X509_ATTRIBUTE * X509_ATTRIBUTE_dup(X509_ATTRIBUTE *xa)
xds_interop_client.str
str
Definition: xds_interop_client.py:487
evp_cipher_info_st
Definition: cipher.h:580
X509_policy_tree_level_count
OPENSSL_EXPORT int X509_policy_tree_level_count(const X509_POLICY_TREE *tree)
Definition: pcy_lib.c:67
X509_CRL_set_issuer_name
OPENSSL_EXPORT int X509_CRL_set_issuer_name(X509_CRL *crl, X509_NAME *name)
Definition: x509cset.c:76
X509_NAME_ENTRY_get_data
OPENSSL_EXPORT ASN1_STRING * X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne)
Definition: x509name.c:383
X509_pubkey_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:82
X509_info_st::x509
X509 * x509
Definition: x509.h:288
obj
OPENSSL_EXPORT const ASN1_OBJECT * obj
Definition: x509.h:1671
d2i_EC_PUBKEY_fp
OPENSSL_EXPORT EC_KEY * d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey)
i2d_X509_REQ_fp
OPENSSL_EXPORT int i2d_X509_REQ_fp(FILE *fp, X509_REQ *req)
Definition: x_all.c:188
Netscape_spki_st
Definition: x509.h:308
X509_cmp_time
OPENSSL_EXPORT int X509_cmp_time(const ASN1_TIME *s, time_t *t)
Definition: x509_vfy.c:1880
X509_CRL_dup
OPENSSL_EXPORT X509_CRL * X509_CRL_dup(X509_CRL *crl)
d2i_PKCS8_PRIV_KEY_INFO_fp
OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO * d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO **p8inf)
X509_CRL_digest
OPENSSL_EXPORT int X509_CRL_digest(const X509_CRL *crl, const EVP_MD *md, uint8_t *out, unsigned *out_len)
X509v3_get_ext_by_OBJ
OPENSSL_EXPORT int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x, const ASN1_OBJECT *obj, int lastpos)
Definition: x509_v3.c:85
X509_PUBKEY_get0_param
OPENSSL_EXPORT int X509_PUBKEY_get0_param(ASN1_OBJECT **out_obj, const uint8_t **out_key, int *out_key_len, X509_ALGOR **out_alg, X509_PUBKEY *pub)
Definition: x_pubkey.c:198
X509_issuer_name_cmp
OPENSSL_EXPORT int X509_issuer_name_cmp(const X509 *a, const X509 *b)
Definition: x509_cmp.c:87
X509_STORE_CTX_check_crl_fn
int(* X509_STORE_CTX_check_crl_fn)(X509_STORE_CTX *ctx, X509_CRL *crl)
Definition: x509.h:1891
test_server.argp
argp
Definition: test_server.py:33
X509_digest
OPENSSL_EXPORT int X509_digest(const X509 *x509, const EVP_MD *md, uint8_t *out, unsigned *out_len)
X509_POLICY_LEVEL_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h:214
gen_build_yaml.out
dictionary out
Definition: src/benchmark/gen_build_yaml.py:24
i2d_RSAPrivateKey_bio
OPENSSL_EXPORT int i2d_RSAPrivateKey_bio(BIO *bp, RSA *rsa)
X509at_get_attr_count
OPENSSL_EXPORT int X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x)
Definition: x509_att.c:69
EVP_PKCS82PKEY
OPENSSL_EXPORT EVP_PKEY * EVP_PKCS82PKEY(PKCS8_PRIV_KEY_INFO *p8)
X509_set1_notAfter
OPENSSL_EXPORT int X509_set1_notAfter(X509 *x509, const ASN1_TIME *tm)
Definition: x509_set.c:166
X509_LOOKUP_by_alias
OPENSSL_EXPORT int X509_LOOKUP_by_alias(X509_LOOKUP *ctx, int type, char *str, int len, X509_OBJECT *ret)
Definition: x509_lu.c:156
X509_get_subject_name
OPENSSL_EXPORT X509_NAME * X509_get_subject_name(const X509 *x509)
Definition: x509_cmp.c:122
X509_ATTRIBUTE_get0_data
OPENSSL_EXPORT void * X509_ATTRIBUTE_get0_data(X509_ATTRIBUTE *attr, int idx, int attrtype, void *unused)
Definition: x509_att.c:337
regen-readme.it
it
Definition: regen-readme.py:15
X509_chain_check_suiteb
OPENSSL_EXPORT int X509_chain_check_suiteb(int *perror_depth, X509 *x, STACK_OF(X509) *chain, unsigned long flags)
Definition: x509_cmp.c:370
X509_STORE_set_cleanup
OPENSSL_EXPORT void X509_STORE_set_cleanup(X509_STORE *ctx, X509_STORE_CTX_cleanup_fn cleanup)
Definition: x509_lu.c:816
X509_REQ_add1_attr_by_OBJ
OPENSSL_EXPORT int X509_REQ_add1_attr_by_OBJ(X509_REQ *req, const ASN1_OBJECT *obj, int attrtype, const unsigned char *data, int len)
Definition: x509_req.c:256
RSA_PSS_PARAMS_free
#define RSA_PSS_PARAMS_free
Definition: boringssl_prefix_symbols.h:2078
d2i_RSAPrivateKey_fp
OPENSSL_EXPORT RSA * d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa)
X509_STORE_get_verify
OPENSSL_EXPORT X509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx)
Definition: x509_lu.c:712
X509_NAME_get_text_by_NID
OPENSSL_EXPORT int X509_NAME_get_text_by_NID(const X509_NAME *name, int nid, char *buf, int len)
Definition: x509name.c:70
PKCS8_pkey_set0
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)
GENERAL_NAME_st
Definition: x509v3.h:173
X509_ALGOR_free
#define X509_ALGOR_free
Definition: boringssl_prefix_symbols.h:2253
X509_REQ_get_extensions
#define X509_REQ_get_extensions
Definition: boringssl_prefix_symbols.h:2447
private_key_st::enc_pkey
ASN1_OCTET_STRING * enc_pkey
Definition: x509.h:273
X509_CRL_print_fp
OPENSSL_EXPORT int X509_CRL_print_fp(FILE *bp, X509_CRL *x)
Definition: t_crl.c:64
X509_get_ext_by_critical
OPENSSL_EXPORT int X509_get_ext_by_critical(const X509 *x, int crit, int lastpos)
Definition: x509_ext.c:130
X509_sign_ctx
OPENSSL_EXPORT int X509_sign_ctx(X509 *x509, EVP_MD_CTX *ctx)
Definition: x_all.c:95
X509_OBJECT_idx_by_subject
OPENSSL_EXPORT int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, int type, X509_NAME *name)
Definition: x509_lu.c:492
private_key_st::key_free
int key_free
Definition: x509.h:281
X509_keyid_set1
OPENSSL_EXPORT int X509_keyid_set1(X509 *x, const unsigned char *id, int len)
X509_STORE_CTX_set_depth
OPENSSL_EXPORT void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth)
Definition: x509_vfy.c:2400
ctx
Definition: benchmark-async.c:30
X509_to_X509_REQ
OPENSSL_EXPORT X509_REQ * X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md)
Definition: x509_req.c:71
X509_REVOKED_get_ext_by_OBJ
OPENSSL_EXPORT int X509_REVOKED_get_ext_by_OBJ(const X509_REVOKED *x, const ASN1_OBJECT *obj, int lastpos)
Definition: x509_ext.c:175
X509_NAME_set
OPENSSL_EXPORT int X509_NAME_set(X509_NAME **xn, X509_NAME *name)
Definition: x_name.c:519
X509_get_ext_by_NID
OPENSSL_EXPORT int X509_get_ext_by_NID(const X509 *x, int nid, int lastpos)
Definition: x509_ext.c:120
d2i_X509_REQ_bio
OPENSSL_EXPORT X509_REQ * d2i_X509_REQ_bio(BIO *bp, X509_REQ **req)
Definition: x_all.c:193
DECLARE_ASN1_FUNCTIONS
#define DECLARE_ASN1_FUNCTIONS(type)
Definition: asn1.h:1776
CRYPTO_EX_dup
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:184
d2i_RSA_PUBKEY_fp
OPENSSL_EXPORT RSA * d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa)
X509_REQ_get_signature_nid
OPENSSL_EXPORT int X509_REQ_get_signature_nid(const X509_REQ *req)
Definition: x509_req.c:295
X509_get0_serialNumber
const OPENSSL_EXPORT ASN1_INTEGER * X509_get0_serialNumber(const X509 *x509)
Definition: x509_cmp.c:132
check_trust
static int check_trust(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:857
X509_ATTRIBUTE_create
OPENSSL_EXPORT X509_ATTRIBUTE * X509_ATTRIBUTE_create(int nid, int attrtype, void *value)
bio_st
Definition: bio.h:822
env_md_st
Definition: third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/internal.h:67
X509_getm_notBefore
OPENSSL_EXPORT ASN1_TIME * X509_getm_notBefore(X509 *x509)
Definition: x509_set.c:150
i2d_X509_bio
OPENSSL_EXPORT int i2d_X509_bio(BIO *bp, X509 *x509)
Definition: x_all.c:158
X509_algor_st::algorithm
ASN1_OBJECT * algorithm
Definition: x509.h:114
X509at_add1_attr_by_txt
#define X509at_add1_attr_by_txt
Definition: boringssl_prefix_symbols.h:2738
X509_get_ext_by_OBJ
OPENSSL_EXPORT int X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj, int lastpos)
Definition: x509_ext.c:125
private_key_st::enc_algor
X509_ALGOR * enc_algor
Definition: x509.h:272
X509_REVOKED_set_revocationDate
OPENSSL_EXPORT int X509_REVOKED_set_revocationDate(X509_REVOKED *revoked, const ASN1_TIME *tm)
Definition: x509cset.c:198
evp.h
X509_set_issuer_name
OPENSSL_EXPORT int X509_set_issuer_name(X509 *x509, X509_NAME *name)
Definition: x509_set.c:109
X509_STORE_CTX_check_policy_fn
int(* X509_STORE_CTX_check_policy_fn)(X509_STORE_CTX *ctx)
Definition: x509.h:1894
X509_STORE_CTX_trusted_stack
OPENSSL_EXPORT void X509_STORE_CTX_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk)
Definition: x509_vfy.c:2369
X509_STORE_CTX_zero
OPENSSL_EXPORT void X509_STORE_CTX_zero(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2253
X509_REVOKED_get0_extensions
#define X509_REVOKED_get0_extensions
Definition: boringssl_prefix_symbols.h:2468
X509_REVOKED_get_ext_count
OPENSSL_EXPORT int X509_REVOKED_get_ext_count(const X509_REVOKED *x)
Definition: x509_ext.c:165
rsa_pss_params_st::trailerField
ASN1_INTEGER * trailerField
Definition: x509.h:1848
pkcs7.h
X509_ATTRIBUTE_count
OPENSSL_EXPORT int X509_ATTRIBUTE_count(const X509_ATTRIBUTE *attr)
Definition: x509_att.c:325
X509_NAME_ENTRY_free
#define X509_NAME_ENTRY_free
Definition: boringssl_prefix_symbols.h:2363
X509_REQ_add1_attr_by_NID
OPENSSL_EXPORT int X509_REQ_add1_attr_by_NID(X509_REQ *req, int nid, int attrtype, const unsigned char *data, int len)
Definition: x509_req.c:266
X509_STORE_new
OPENSSL_EXPORT X509_STORE * X509_STORE_new(void)
Definition: x509_lu.c:185
X509_STORE_CTX_get0_chain
#define X509_STORE_CTX_get0_chain
Definition: boringssl_prefix_symbols.h:2489
X509_NAME_add_entry
OPENSSL_EXPORT int X509_NAME_add_entry(X509_NAME *name, X509_NAME_ENTRY *ne, int loc, int set)
Definition: x509name.c:227
X509_PKEY_free
OPENSSL_EXPORT void X509_PKEY_free(X509_PKEY *a)
Definition: x_pkey.c:92
ecdsa.h
X509_get_default_cert_dir
const OPENSSL_EXPORT char * X509_get_default_cert_dir(void)
Definition: x509_def.c:85
verify_cb
static int verify_cb(int ok, X509_STORE_CTX *ctx)
Definition: ssl_transport_security.cc:1973
X509_STORE_get_check_issued
OPENSSL_EXPORT X509_STORE_CTX_check_issued_fn X509_STORE_get_check_issued(X509_STORE *ctx)
Definition: x509_lu.c:745
d2i_DSAPrivateKey_bio
OPENSSL_EXPORT DSA * d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa)
X509_add_ext
OPENSSL_EXPORT int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc)
Definition: x509_ext.c:146
rsa_pss_params_st::hashAlgorithm
X509_ALGOR * hashAlgorithm
Definition: x509.h:1845
X509_SIG_getm
OPENSSL_EXPORT void X509_SIG_getm(X509_SIG *sig, X509_ALGOR **out_alg, ASN1_OCTET_STRING **out_digest)
X509_NAME_print_ex_fp
OPENSSL_EXPORT int X509_NAME_print_ex_fp(FILE *fp, const X509_NAME *nm, int indent, unsigned long flags)
Definition: name_print.c:231
X509_LOOKUP_new
OPENSSL_EXPORT X509_LOOKUP * X509_LOOKUP_new(X509_LOOKUP_METHOD *method)
Definition: x509_lu.c:69
bio.h
X509_EXTENSION_set_object
OPENSSL_EXPORT int X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj)
Definition: x509_v3.c:231
X509_ALGOR_set0
OPENSSL_EXPORT int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *obj, int param_type, void *param_value)
X509_VERIFY_PARAM_new
OPENSSL_EXPORT X509_VERIFY_PARAM * X509_VERIFY_PARAM_new(void)
Definition: x509_vpm.c:169
X509_PKEY_new
OPENSSL_EXPORT X509_PKEY * X509_PKEY_new(void)
Definition: x_pkey.c:69
X509_info_st::enc_cipher
EVP_CIPHER_INFO enc_cipher
Definition: x509.h:292
X509_POLICY_NODE_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h:205
X509_CRL_get_meth_data
OPENSSL_EXPORT void * X509_CRL_get_meth_data(X509_CRL *crl)
Definition: x_crl.c:562
X509_STORE_CTX_free
OPENSSL_EXPORT void X509_STORE_CTX_free(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2258
buf
voidpf void * buf
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
X509_CRL_get0_extensions
#define X509_CRL_get0_extensions
Definition: boringssl_prefix_symbols.h:2297
X509_policy_tree_get0_user_policies
#define X509_policy_tree_get0_user_policies
Definition: boringssl_prefix_symbols.h:2699
X509_ATTRIBUTE_free
#define X509_ATTRIBUTE_free
Definition: boringssl_prefix_symbols.h:2265
i2d_RSA_PUBKEY_fp
OPENSSL_EXPORT int i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa)
i2d_PKCS8_bio
OPENSSL_EXPORT int i2d_PKCS8_bio(BIO *bp, X509_SIG *p8)
X509_STORE_get_lookup_certs
OPENSSL_EXPORT X509_STORE_CTX_lookup_certs_fn X509_STORE_get_lookup_certs(X509_STORE *ctx)
Definition: x509_lu.c:800
i2d_RSAPublicKey_bio
OPENSSL_EXPORT int i2d_RSAPublicKey_bio(BIO *bp, RSA *rsa)
check_revocation
static int check_revocation(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:909
X509_STORE_get_cert_crl
OPENSSL_EXPORT X509_STORE_CTX_cert_crl_fn X509_STORE_get_cert_crl(X509_STORE *ctx)
Definition: x509_lu.c:789
x509_crl_method_st
Definition: x_crl.c:80
d2i_ECPrivateKey_fp
OPENSSL_EXPORT EC_KEY * d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey)
X509_set_notBefore
OPENSSL_EXPORT int X509_set_notBefore(X509 *x509, const ASN1_TIME *tm)
Definition: x509_set.c:140
X509_REQ_verify
OPENSSL_EXPORT int X509_REQ_verify(X509_REQ *req, EVP_PKEY *pkey)
Definition: x_all.c:82
X509_STORE_set_cert_crl
OPENSSL_EXPORT void X509_STORE_set_cert_crl(X509_STORE *ctx, X509_STORE_CTX_cert_crl_fn cert_crl)
Definition: x509_lu.c:783
X509_sig_st
Definition: x_sig.c:64
X509_CRL_check_suiteb
OPENSSL_EXPORT int X509_CRL_check_suiteb(X509_CRL *crl, EVP_PKEY *pk, unsigned long flags)
Definition: x509_cmp.c:438
X509_get_ex_new_index
OPENSSL_EXPORT int X509_get_ex_new_index(long argl, void *argp, CRYPTO_EX_unused *unused, CRYPTO_EX_dup *dup_unused, CRYPTO_EX_free *free_func)
error_ref_leak.err
err
Definition: error_ref_leak.py:35
X509_STORE_set_trust
OPENSSL_EXPORT int X509_STORE_set_trust(X509_STORE *ctx, int trust)
Definition: x509_lu.c:692
X509_CRL_verify
OPENSSL_EXPORT int X509_CRL_verify(X509_CRL *crl, EVP_PKEY *pkey)
X509_policy_level_node_count
OPENSSL_EXPORT int X509_policy_level_node_count(X509_POLICY_LEVEL *level)
Definition: pcy_lib.c:105
x509_revoked_st
Definition: x509.h:252
i2d_PrivateKey_bio
OPENSSL_EXPORT int i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey)
X509_set_version
OPENSSL_EXPORT int X509_set_version(X509 *x509, long version)
Definition: x509_set.c:75
X509_NAME_get_index_by_NID
OPENSSL_EXPORT int X509_NAME_get_index_by_NID(const X509_NAME *name, int nid, int lastpos)
Definition: x509name.c:106
X509_STORE_set_check_revocation
OPENSSL_EXPORT void X509_STORE_set_check_revocation(X509_STORE *ctx, X509_STORE_CTX_check_revocation_fn check_revocation)
Definition: x509_lu.c:750
ecdh.h
loc
OPENSSL_EXPORT X509_EXTENSION int loc
Definition: x509.h:1418
file
Definition: bloaty/third_party/zlib/examples/gzappend.c:170
X509_parse_from_buffer
OPENSSL_EXPORT X509 * X509_parse_from_buffer(CRYPTO_BUFFER *buf)
X509_pubkey_digest
OPENSSL_EXPORT int X509_pubkey_digest(const X509 *x509, const EVP_MD *md, uint8_t *out, unsigned *out_len)
d2i_PUBKEY_bio
OPENSSL_EXPORT EVP_PKEY * d2i_PUBKEY_bio(BIO *bp, EVP_PKEY **a)
x509_revoked_st::revocationDate
ASN1_TIME * revocationDate
Definition: x509.h:254
X509_delete_ext
OPENSSL_EXPORT X509_EXTENSION * X509_delete_ext(X509 *x, int loc)
Definition: x509_ext.c:141
i2d_PKCS8_PRIV_KEY_INFO_fp
OPENSSL_EXPORT int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf)
X509_TRUST_get0_name
OPENSSL_EXPORT char * X509_TRUST_get0_name(const X509_TRUST *xp)
Definition: x509_trs.c:270
check_issued
static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer)
Definition: x509_vfy.c:543
i2d_PKCS8_PRIV_KEY_INFO_bio
OPENSSL_EXPORT int i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO *p8inf)
X509_REQ_print_fp
OPENSSL_EXPORT int X509_REQ_print_fp(FILE *bp, X509_REQ *req)
Definition: t_req.c:69
X509_load_cert_crl_file
OPENSSL_EXPORT int X509_load_cert_crl_file(X509_LOOKUP *ctx, const char *file, int type)
Definition: by_file.c:242
X509_ALGOR_get0
OPENSSL_EXPORT void X509_ALGOR_get0(const ASN1_OBJECT **out_obj, int *out_param_type, const void **out_param_value, const X509_ALGOR *alg)
X509_STORE_CTX_verify_fn
int(* X509_STORE_CTX_verify_fn)(X509_STORE_CTX *)
Definition: x509.h:1883
crypto_buffer_st
Definition: third_party/boringssl-with-bazel/src/crypto/pool/internal.h:31
setup.name
name
Definition: setup.py:542
X509_STORE_CTX_set_error
OPENSSL_EXPORT void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx, int s)
Definition: x509_vfy.c:2110
X509_VERIFY_PARAM_get_flags
OPENSSL_EXPORT unsigned long X509_VERIFY_PARAM_get_flags(X509_VERIFY_PARAM *param)
Definition: x509_vpm.c:368
version
Definition: version.py:1
X509_signature_dump
OPENSSL_EXPORT int X509_signature_dump(BIO *bio, const ASN1_STRING *sig, int indent)
Definition: x509.c:68
X509_CRL_METHOD_new
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:529
X509_NAME_add_entry_by_OBJ
OPENSSL_EXPORT int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len, int loc, int set)
Definition: x509name.c:181
X509_STORE_CTX_get0_current_crl
OPENSSL_EXPORT X509_CRL * X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2147
X509_TRUST_get0
OPENSSL_EXPORT X509_TRUST * X509_TRUST_get0(int idx)
Definition: x509_trs.c:145
X509_LOOKUP_hash_dir
OPENSSL_EXPORT X509_LOOKUP_METHOD * X509_LOOKUP_hash_dir(void)
Definition: by_dir.c:112
a
int a
Definition: abseil-cpp/absl/container/internal/hash_policy_traits_test.cc:88
X509_STORE_CTX_get0_current_issuer
OPENSSL_EXPORT X509 * X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2142
X509_EXTENSION_get_critical
OPENSSL_EXPORT int X509_EXTENSION_get_critical(const X509_EXTENSION *ex)
Definition: x509_v3.c:274
X509_set1_signature_algo
OPENSSL_EXPORT int X509_set1_signature_algo(X509 *x509, const X509_ALGOR *algo)
X509_NAME_add_entry_by_NID
OPENSSL_EXPORT int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, const unsigned char *bytes, int len, int loc, int set)
Definition: x509name.c:195
X509_LOOKUP_init
OPENSSL_EXPORT int X509_LOOKUP_init(X509_LOOKUP *ctx)
Definition: x509_lu.c:98
to
size_t to
Definition: abseil-cpp/absl/container/internal/layout_test.cc:1385
python_utils.upload_rbe_results.indent
indent
Definition: upload_rbe_results.py:183
X509_ATTRIBUTE_create_by_OBJ
OPENSSL_EXPORT X509_ATTRIBUTE * X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr, const ASN1_OBJECT *obj, int attrtype, const void *data, int len)
Definition: x509_att.c:217
X509_time_adj
OPENSSL_EXPORT ASN1_TIME * X509_time_adj(ASN1_TIME *s, long offset_sec, time_t *t)
Definition: x509_vfy.c:1950
X509_get0_extensions
#define X509_get0_extensions
Definition: boringssl_prefix_symbols.h:2636
X509_VERIFY_PARAM_add1_host
OPENSSL_EXPORT int X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param, const char *name, size_t namelen)
Definition: x509_vpm.c:450
NETSCAPE_SPKI_get_pubkey
OPENSSL_EXPORT EVP_PKEY * NETSCAPE_SPKI_get_pubkey(NETSCAPE_SPKI *spki)
Definition: x509spki.c:71
X509_STORE_CTX_get_issuer_fn
int(* X509_STORE_CTX_get_issuer_fn)(X509 **issuer, X509_STORE_CTX *ctx, X509 *x)
Definition: x509.h:1884
X509_VERIFY_PARAM_get_count
OPENSSL_EXPORT int X509_VERIFY_PARAM_get_count(void)
Definition: x509_vpm.c:608
rsa_pss_params_st::maskGenAlgorithm
X509_ALGOR * maskGenAlgorithm
Definition: x509.h:1846
X509_NAME_hash
OPENSSL_EXPORT unsigned long X509_NAME_hash(X509_NAME *x)
Definition: x509_cmp.c:209
X509_REQ_get_attr
OPENSSL_EXPORT X509_ATTRIBUTE * X509_REQ_get_attr(const X509_REQ *req, int loc)
Definition: x509_req.c:239
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
i2d_RSAPublicKey_fp
OPENSSL_EXPORT int i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa)
X509_extension_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:117
X509_chain_up_ref
#define X509_chain_up_ref
Definition: boringssl_prefix_symbols.h:2612
X509_REVOKED_dup
OPENSSL_EXPORT X509_REVOKED * X509_REVOKED_dup(X509_REVOKED *rev)
X509_CRL_get_nextUpdate
OPENSSL_EXPORT ASN1_TIME * X509_CRL_get_nextUpdate(X509_CRL *crl)
Definition: x509cset.c:159
X509_get_pubkey
OPENSSL_EXPORT EVP_PKEY * X509_get_pubkey(X509 *x509)
Definition: x509_cmp.c:288
X509_LOOKUP_free
OPENSSL_EXPORT void X509_LOOKUP_free(X509_LOOKUP *ctx)
Definition: x509_lu.c:89
d2i_PKCS8_fp
OPENSSL_EXPORT X509_SIG * d2i_PKCS8_fp(FILE *fp, X509_SIG **p8)
ASN1_item_verify
OPENSSL_EXPORT int ASN1_item_verify(const ASN1_ITEM *it, const X509_ALGOR *algor1, const ASN1_BIT_STRING *signature, void *data, EVP_PKEY *pkey)
Definition: a_verify.c:72
ex
OPENSSL_EXPORT X509_EXTENSION * ex
Definition: x509.h:1418
verify
static void verify(const verify_params params, const char *expected, size_t nheaders,...)
Definition: hpack_encoder_test.cc:158
X509at_get_attr_by_OBJ
OPENSSL_EXPORT int X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, const ASN1_OBJECT *obj, int lastpos)
Definition: x509_att.c:84
X509_NAME_free
#define X509_NAME_free
Definition: boringssl_prefix_symbols.h:2381
i2d_PUBKEY_fp
OPENSSL_EXPORT int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey)
DIST_POINT_st
Definition: x509v3.h:246
bytes
OPENSSL_EXPORT const ASN1_OBJECT int const unsigned char * bytes
Definition: x509.h:1672
X509_CRL_get_version
OPENSSL_EXPORT long X509_CRL_get_version(const X509_CRL *crl)
Definition: x509cset.c:139
NETSCAPE_SPKI_set_pubkey
OPENSSL_EXPORT int NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *spki, EVP_PKEY *pkey)
Definition: x509spki.c:64
X509_set1_signature_value
OPENSSL_EXPORT int X509_set1_signature_value(X509 *x509, const uint8_t *sig, size_t sig_len)
d2i_X509_fp
OPENSSL_EXPORT X509 * d2i_X509_fp(FILE *fp, X509 **x509)
Definition: x_all.c:143
gen_build_yaml.struct
def struct(**kwargs)
Definition: test/core/end2end/gen_build_yaml.py:30
base.h
X509_get_version
OPENSSL_EXPORT long X509_get_version(const X509 *x509)
Definition: x509_set.c:66
X509_REQ_print
OPENSSL_EXPORT int X509_REQ_print(BIO *bp, X509_REQ *req)
Definition: t_req.c:244
X509_REQ_extension_nid
OPENSSL_EXPORT int X509_REQ_extension_nid(int nid)
Definition: x509_req.c:163
d2i_DSA_PUBKEY_fp
OPENSSL_EXPORT DSA * d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa)
X509_CRL_sort
OPENSSL_EXPORT int X509_CRL_sort(X509_CRL *crl)
Definition: x509cset.c:117
ASN1_item_sign_ctx
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
i2d_of_void
int i2d_of_void(const void *, unsigned char **)
Definition: asn1.h:275
env_md_ctx_st
Definition: digest.h:306
asn1_object_st
Definition: third_party/boringssl-with-bazel/src/crypto/asn1/internal.h:102
X509_STORE_CTX_set_time
OPENSSL_EXPORT void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags, time_t t)
Definition: x509_vfy.c:2410
X509_TRUST_get_count
OPENSSL_EXPORT int X509_TRUST_get_count(void)
Definition: x509_trs.c:138
X509_verify
OPENSSL_EXPORT int X509_verify(X509 *x509, EVP_PKEY *pkey)
Definition: x_all.c:72
X509at_add1_attr_by_NID
#define X509at_add1_attr_by_NID
Definition: boringssl_prefix_symbols.h:2736
X509_REVOKED_set_serialNumber
OPENSSL_EXPORT int X509_REVOKED_set_serialNumber(X509_REVOKED *revoked, const ASN1_INTEGER *serial)
Definition: x509cset.c:220
X509_dup
OPENSSL_EXPORT X509 * X509_dup(X509 *x509)
d2i_RSAPublicKey_fp
OPENSSL_EXPORT RSA * d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa)
X509_NAME_print_ex
OPENSSL_EXPORT int X509_NAME_print_ex(BIO *out, const X509_NAME *nm, int indent, unsigned long flags)
Definition: name_print.c:223
ASN1_item_digest
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
private_key_st::dec_pkey
EVP_PKEY * dec_pkey
Definition: x509.h:276
X509_print_fp
OPENSSL_EXPORT int X509_print_fp(FILE *bp, X509 *x)
Definition: t_x509.c:83
X509_REQ_get_attr_by_OBJ
OPENSSL_EXPORT int X509_REQ_get_attr_by_OBJ(const X509_REQ *req, const ASN1_OBJECT *obj, int lastpos)
Definition: x509_req.c:233
d2i_X509_CRL_fp
OPENSSL_EXPORT X509_CRL * d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl)
Definition: x_all.c:163
X509_free
#define X509_free
Definition: boringssl_prefix_symbols.h:2632
X509_print
OPENSSL_EXPORT int X509_print(BIO *bp, X509 *x)
Definition: t_x509.c:88
X509_VERIFY_PARAM_get0_peername
OPENSSL_EXPORT char * X509_VERIFY_PARAM_get0_peername(X509_VERIFY_PARAM *)
Definition: x509_vpm.c:466
i2d_X509_tbs
OPENSSL_EXPORT int i2d_X509_tbs(X509 *x509, unsigned char **outp)
X509_NAME_ENTRY_set_data
OPENSSL_EXPORT int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, const unsigned char *bytes, int len)
Definition: x509name.c:354
X509_STORE_get_get_issuer
OPENSSL_EXPORT X509_STORE_CTX_get_issuer_fn X509_STORE_get_get_issuer(X509_STORE *ctx)
Definition: x509_lu.c:734
d2i_PrivateKey_fp
OPENSSL_EXPORT EVP_PKEY * d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a)
X509v3_get_ext_count
OPENSSL_EXPORT int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x)
Definition: x509_v3.c:68
from
size_t from
Definition: abseil-cpp/absl/container/internal/layout_test.cc:1384
X509_print_ex
OPENSSL_EXPORT int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflag, unsigned long cflag)
Definition: t_x509.c:93
X509_POLICY_TREE_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h:228
x509_trust_st::name
char * name
Definition: x509.h:150
X509_REQ_add1_attr
OPENSSL_EXPORT int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr)
Definition: x509_req.c:249
BORINGSSL_MAKE_UP_REF
#define BORINGSSL_MAKE_UP_REF(type, up_ref_func)
Definition: base.h:507
ASN1_digest
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
cert_crl
static int cert_crl(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x)
Definition: x509_vfy.c:1663
X509_subject_name_hash
OPENSSL_EXPORT unsigned long X509_subject_name_hash(X509 *x)
Definition: x509_cmp.c:137
private_key_st::key_length
int key_length
Definition: x509.h:279
X509_NAME_delete_entry
OPENSSL_EXPORT X509_NAME_ENTRY * X509_NAME_delete_entry(X509_NAME *name, int loc)
Definition: x509name.c:147
X509_CRL_set1_nextUpdate
OPENSSL_EXPORT int X509_CRL_set1_nextUpdate(X509_CRL *crl, const ASN1_TIME *tm)
Definition: x509cset.c:100
dh.h
X509_policy_check
OPENSSL_EXPORT int X509_policy_check(X509_POLICY_TREE **ptree, int *pexplicit_policy, STACK_OF(X509) *certs, STACK_OF(ASN1_OBJECT) *policy_oids, unsigned int flags)
Definition: pcy_tree.c:738
X509_get_issuer_name
OPENSSL_EXPORT X509_NAME * X509_get_issuer_name(const X509 *x509)
Definition: x509_cmp.c:107
X509_VERIFY_PARAM_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:217
x509_revoked_st::reason
int reason
Definition: x509.h:259
c
void c(T a)
Definition: miscompile_with_no_unique_address_test.cc:40
X509_LOOKUP_file
OPENSSL_EXPORT X509_LOOKUP_METHOD * X509_LOOKUP_file(void)
Definition: by_file.c:83
X509_algor_st::parameter
ASN1_TYPE * parameter
Definition: x509.h:115
X509_REVOKED_get_ext_by_critical
OPENSSL_EXPORT int X509_REVOKED_get_ext_by_critical(const X509_REVOKED *x, int crit, int lastpos)
Definition: x509_ext.c:181
X509_ALGOR_cmp
OPENSSL_EXPORT int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b)
X509_VERIFY_PARAM_get0
const OPENSSL_EXPORT X509_VERIFY_PARAM * X509_VERIFY_PARAM_get0(int id)
Definition: x509_vpm.c:616
X509_INFO_free
OPENSSL_EXPORT void X509_INFO_free(X509_INFO *a)
Definition: x_info.c:84
ASN1_ITEM_st
Definition: asn1t.h:459
X509_STORE_set_flags
OPENSSL_EXPORT int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags)
Definition: x509_lu.c:676
X509_add1_ext_i2d
OPENSSL_EXPORT int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit, unsigned long flags)
Definition: x509_ext.c:158
d2i_DHparams_bio
OPENSSL_EXPORT DH * d2i_DHparams_bio(BIO *bp, DH **dh)
X509_REVOKED_get0_serialNumber
const OPENSSL_EXPORT ASN1_INTEGER * X509_REVOKED_get0_serialNumber(const X509_REVOKED *revoked)
Definition: x509cset.c:215
evp_pkey_st
Definition: evp.h:1046
xds_interop_client.int
int
Definition: xds_interop_client.py:113
i2d_X509_fp
OPENSSL_EXPORT int i2d_X509_fp(FILE *fp, X509 *x509)
Definition: x_all.c:148
X509_NAME_ENTRY_create_by_txt
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:283
i2d_X509_AUX
OPENSSL_EXPORT int i2d_X509_AUX(X509 *a, unsigned char **pp)
X509_CRL_set_default_method
OPENSSL_EXPORT void X509_CRL_set_default_method(const X509_CRL_METHOD *meth)
Definition: x_crl.c:521
attrname
OPENSSL_EXPORT const char * attrname
Definition: x509.h:1683
X509_set_pubkey
OPENSSL_EXPORT int X509_set_pubkey(X509 *x509, EVP_PKEY *pkey)
Definition: x509_set.c:220
X509_VERIFY_PARAM_set_hostflags
OPENSSL_EXPORT void X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, unsigned int flags)
Definition: x509_vpm.c:460
STACK_OF
typedef STACK_OF(X509_ALGOR) X509_ALGORS
X509_TRUST_get_by_id
OPENSSL_EXPORT int X509_TRUST_get_by_id(int id)
Definition: x509_trs.c:154
X509_ATTRIBUTE_create_by_txt
OPENSSL_EXPORT X509_ATTRIBUTE * X509_ATTRIBUTE_create_by_txt(X509_ATTRIBUTE **attr, const char *attrname, int type, const unsigned char *bytes, int len)
Definition: x509_att.c:246
Netscape_spki_st::spkac
NETSCAPE_SPKAC * spkac
Definition: x509.h:309
x509_trust_st::flags
int flags
Definition: x509.h:148
X509_VERIFY_PARAM_set_trust
OPENSSL_EXPORT int X509_VERIFY_PARAM_set_trust(X509_VERIFY_PARAM *param, int trust)
Definition: x509_vpm.c:378
X509_STORE_CTX_set_trust
OPENSSL_EXPORT int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust)
Definition: x509_vfy.c:2182
X509_CRL_free
#define X509_CRL_free
Definition: boringssl_prefix_symbols.h:2294
X509_NAME_get_entry
OPENSSL_EXPORT X509_NAME_ENTRY * X509_NAME_get_entry(const X509_NAME *name, int loc)
Definition: x509name.c:138
X509_info_st::enc_len
int enc_len
Definition: x509.h:293
X509_NAME_oneline
OPENSSL_EXPORT char * X509_NAME_oneline(const X509_NAME *a, char *buf, int size)
Definition: x509_obj.c:77
X509_subject_name_hash_old
OPENSSL_EXPORT unsigned long X509_subject_name_hash_old(X509 *x)
Definition: x509_cmp.c:142
d2i_PrivateKey_bio
OPENSSL_EXPORT EVP_PKEY * d2i_PrivateKey_bio(BIO *bp, EVP_PKEY **a)
req
static uv_connect_t req
Definition: test-connection-fail.c:30
X509_REQ_get0_signature
OPENSSL_EXPORT void X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **out_sig, const X509_ALGOR **out_alg)
Definition: x509_req.c:286
X509_LOOKUP_ctrl
OPENSSL_EXPORT int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, long argl, char **ret)
Definition: x509_lu.c:118
X509_VERIFY_PARAM_set1_policies
OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param, STACK_OF(ASN1_OBJECT) *policies)
Definition: x509_vpm.c:407
X509_VERIFY_PARAM_get0_name
const OPENSSL_EXPORT char * X509_VERIFY_PARAM_get0_name(const X509_VERIFY_PARAM *param)
Definition: x509_vpm.c:513
X509_STORE_get_check_crl
OPENSSL_EXPORT X509_STORE_CTX_check_crl_fn X509_STORE_get_check_crl(X509_STORE *ctx)
Definition: x509_lu.c:778
X509_STORE_CTX_set0_crls
OPENSSL_EXPORT void X509_STORE_CTX_set0_crls(X509_STORE_CTX *c, STACK_OF(X509_CRL) *sk)
Definition: x509_vfy.c:2172
X509_get_notAfter
OPENSSL_EXPORT ASN1_TIME * X509_get_notAfter(const X509 *x509)
Definition: x509_set.c:201
x509_trust_st::trust
int trust
Definition: x509.h:147
setup.v
v
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:42
X509_STORE_add_cert
OPENSSL_EXPORT int X509_STORE_add_cert(X509_STORE *ctx, X509 *x)
Definition: x509_lu.c:335
X509_sign
OPENSSL_EXPORT int X509_sign(X509 *x509, EVP_PKEY *pkey, const EVP_MD *md)
Definition: x_all.c:88
X509_CRL_get0_nextUpdate
const OPENSSL_EXPORT ASN1_TIME * X509_CRL_get0_nextUpdate(const X509_CRL *crl)
Definition: x509cset.c:149
X509_STORE_CTX_get1_issuer
OPENSSL_EXPORT int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x)
Definition: x509_lu.c:634
X509_STORE_CTX_cleanup
OPENSSL_EXPORT void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2375
X509_CRL_delete_ext
OPENSSL_EXPORT X509_EXTENSION * X509_CRL_delete_ext(X509_CRL *x, int loc)
Definition: x509_ext.c:93
DECLARE_ASN1_ENCODE_FUNCTIONS
#define DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name)
Definition: asn1.h:1789
X509_EXTENSION_get_object
OPENSSL_EXPORT ASN1_OBJECT * X509_EXTENSION_get_object(X509_EXTENSION *ex)
Definition: x509_v3.c:260
sha.h
X509_trust_clear
OPENSSL_EXPORT void X509_trust_clear(X509 *x)
X509_STORE_CTX_get0_untrusted
#define X509_STORE_CTX_get0_untrusted
Definition: boringssl_prefix_symbols.h:2496
X509_verify_cert
OPENSSL_EXPORT int X509_verify_cert(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:186
d2i_PKCS8_bio
OPENSSL_EXPORT X509_SIG * d2i_PKCS8_bio(BIO *bp, X509_SIG **p8)
X509_policy_node_get0_policy
const OPENSSL_EXPORT ASN1_OBJECT * X509_policy_node_get0_policy(const X509_POLICY_NODE *node)
Definition: pcy_lib.c:133
X509_CRL_sign_ctx
OPENSSL_EXPORT int X509_CRL_sign_ctx(X509_CRL *crl, EVP_MD_CTX *ctx)
Definition: x_all.c:123
X509_VERIFY_PARAM_set1_name
OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_name(X509_VERIFY_PARAM *param, const char *name)
Definition: x509_vpm.c:343
X509_STORE_set1_param
OPENSSL_EXPORT int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm)
Definition: x509_lu.c:697
X509_STORE_set_verify
OPENSSL_EXPORT void X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify_fn verify)
Definition: x509_lu.c:707
X509_REQ_free
#define X509_REQ_free
Definition: boringssl_prefix_symbols.h:2440
X509_crl_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:195
X509_alias_set1
OPENSSL_EXPORT int X509_alias_set1(X509 *x, const unsigned char *name, int len)
X509_get0_pubkey_bitstr
OPENSSL_EXPORT ASN1_BIT_STRING * X509_get0_pubkey_bitstr(const X509 *x509)
Definition: x509_cmp.c:295
BSSL_NAMESPACE_END
#define BSSL_NAMESPACE_END
Definition: base.h:480
X509_get0_tbs_sigalg
const OPENSSL_EXPORT X509_ALGOR * X509_get0_tbs_sigalg(const X509 *x509)
Definition: x509_set.c:232
X509_REQ_set_subject_name
OPENSSL_EXPORT int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name)
Definition: x509rset.c:72
x509_trust_st
Definition: x509.h:146
x509_trust_st::arg1
int arg1
Definition: x509.h:151
X509_VERIFY_PARAM_get_depth
OPENSSL_EXPORT int X509_VERIFY_PARAM_get_depth(const X509_VERIFY_PARAM *param)
Definition: x509_vpm.c:508
X509_TRUST_set
OPENSSL_EXPORT int X509_TRUST_set(int *t, int trust)
Definition: x509_trs.c:171
X509_REVOKED_add_ext
OPENSSL_EXPORT int X509_REVOKED_add_ext(X509_REVOKED *x, X509_EXTENSION *ex, int loc)
Definition: x509_ext.c:197
X509_VERIFY_PARAM_add0_policy
OPENSSL_EXPORT int X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param, ASN1_OBJECT *policy)
Definition: x509_vpm.c:394
X509_STORE_CTX_init
OPENSSL_EXPORT int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, STACK_OF(X509) *chain)
Definition: x509_vfy.c:2267
X509_REQ_add_extensions
OPENSSL_EXPORT int X509_REQ_add_extensions(X509_REQ *req, const STACK_OF(X509_EXTENSION) *exts)
Definition: x509_req.c:215
X509_STORE_CTX_set_ex_data
OPENSSL_EXPORT int X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx, int idx, void *data)
Definition: x509_vfy.c:2095
regen-readme.cmd
cmd
Definition: regen-readme.py:21
X509_STORE_CTX_set0_param
OPENSSL_EXPORT void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param)
Definition: x509_vfy.c:2451
d2i_PKCS8_PRIV_KEY_INFO_bio
OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO * d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO **p8inf)
X509_CRL_print
OPENSSL_EXPORT int X509_CRL_print(BIO *bp, X509_CRL *x)
Definition: t_crl.c:76
pool.h
X509_ALGOR_set_md
OPENSSL_EXPORT void X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md)
X509_STORE_add_crl
OPENSSL_EXPORT int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x)
Definition: x509_lu.c:371
X509_PUBKEY_get0_public_key
const OPENSSL_EXPORT ASN1_BIT_STRING * X509_PUBKEY_get0_public_key(const X509_PUBKEY *pub)
Definition: x_pubkey.c:215
X509_subject_name_cmp
OPENSSL_EXPORT int X509_subject_name_cmp(const X509 *a, const X509 *b)
Definition: x509_cmp.c:92
X509_up_ref
OPENSSL_EXPORT int X509_up_ref(X509 *x509)
i2d_PKCS8PrivateKeyInfo_bio
OPENSSL_EXPORT int i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, EVP_PKEY *key)
i2d_DSAPrivateKey_fp
OPENSSL_EXPORT int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa)
X509_req_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:175
rsa.h
cipher.h
X509_NAME_entry_count
OPENSSL_EXPORT int X509_NAME_entry_count(const X509_NAME *name)
Definition: x509name.c:99
arg
Definition: cmdline.cc:40
X509_STORE_CTX_set_flags
OPENSSL_EXPORT void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags)
Definition: x509_vfy.c:2405
CRYPTO_EX_unused
int CRYPTO_EX_unused
Definition: ex_data.h:192
X509_get0_signature
OPENSSL_EXPORT void X509_get0_signature(const ASN1_BIT_STRING **out_sig, const X509_ALGOR **out_alg, const X509 *x509)
x509_store_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:270
i2d_re_X509_REQ_tbs
OPENSSL_EXPORT int i2d_re_X509_REQ_tbs(X509_REQ *req, uint8_t **outp)
Definition: x509_req.c:300
X509_get_default_cert_dir_env
const OPENSSL_EXPORT char * X509_get_default_cert_dir_env(void)
Definition: x509_def.c:95
X509_load_cert_file
OPENSSL_EXPORT int X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type)
Definition: by_file.c:122
X509_CRL_get_issuer
OPENSSL_EXPORT X509_NAME * X509_CRL_get_issuer(const X509_CRL *crl)
Definition: x509cset.c:164
X509_STORE_CTX_set_purpose
OPENSSL_EXPORT int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose)
Definition: x509_vfy.c:2177
X509_ATTRIBUTE_set1_object
OPENSSL_EXPORT int X509_ATTRIBUTE_set1_object(X509_ATTRIBUTE *attr, const ASN1_OBJECT *obj)
Definition: x509_att.c:265
X509_OBJECT_retrieve_by_subject
OPENSSL_EXPORT X509_OBJECT * X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h, int type, X509_NAME *name)
Definition: x509_lu.c:498
dsa.h
X509_STORE_add_lookup
OPENSSL_EXPORT X509_LOOKUP * X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m)
Definition: x509_lu.c:271
X509_VERIFY_PARAM_set_depth
OPENSSL_EXPORT void X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth)
Definition: x509_vpm.c:383
X509_VERIFY_PARAM_set1_email
OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_email(X509_VERIFY_PARAM *param, const char *email, size_t emaillen)
Definition: x509_vpm.c:471
X509_CRL_match
OPENSSL_EXPORT int X509_CRL_match(const X509_CRL *a, const X509_CRL *b)
Definition: x509_cmp.c:102
private_key_st::version
int version
Definition: x509.h:270
X509_STORE_get_cleanup
OPENSSL_EXPORT X509_STORE_CTX_cleanup_fn X509_STORE_get_cleanup(X509_STORE *ctx)
Definition: x509_lu.c:822
X509_REVOKED_delete_ext
OPENSSL_EXPORT X509_EXTENSION * X509_REVOKED_delete_ext(X509_REVOKED *x, int loc)
Definition: x509_ext.c:192
X509_CRL_get0_signature
OPENSSL_EXPORT void X509_CRL_get0_signature(const X509_CRL *crl, const ASN1_BIT_STRING **out_sig, const X509_ALGOR **out_alg)
Definition: x509cset.c:179
x
int x
Definition: bloaty/third_party/googletest/googlemock/test/gmock-matchers_test.cc:3610
x509_lookup_method_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:249
X509_STORE_CTX_get0_policy_tree
OPENSSL_EXPORT X509_POLICY_TREE * X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2427
i2d_RSAPrivateKey_fp
OPENSSL_EXPORT int i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa)
gen_synthetic_protos.base
base
Definition: gen_synthetic_protos.py:31
data
char data[kBufferLength]
Definition: abseil-cpp/absl/strings/internal/str_format/float_conversion.cc:1006
X509_REVOKED_get_ext
OPENSSL_EXPORT X509_EXTENSION * X509_REVOKED_get_ext(const X509_REVOKED *x, int loc)
Definition: x509_ext.c:187
conf.extensions
list extensions
Definition: doc/python/sphinx/conf.py:54
x509_object_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:237
X509_VERIFY_PARAM_set_time
OPENSSL_EXPORT void X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t)
Definition: x509_vpm.c:388
i2d_DSA_PUBKEY_fp
OPENSSL_EXPORT int i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa)
X509_STORE_CTX_check_revocation_fn
int(* X509_STORE_CTX_check_revocation_fn)(X509_STORE_CTX *ctx)
Definition: x509.h:1888
X509_REQ_get_version
OPENSSL_EXPORT long X509_REQ_get_version(const X509_REQ *req)
Definition: x509_req.c:113
X509at_add1_attr_by_OBJ
#define X509at_add1_attr_by_OBJ
Definition: boringssl_prefix_symbols.h:2737
i2d_PKCS8PrivateKeyInfo_fp
OPENSSL_EXPORT int i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key)
x509_cert_aux_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:109
X509_CRL_set1_lastUpdate
OPENSSL_EXPORT int X509_CRL_set1_lastUpdate(X509_CRL *crl, const ASN1_TIME *tm)
Definition: x509cset.c:83
X509_CRL_get_REVOKED
#define X509_CRL_get_REVOKED
Definition: boringssl_prefix_symbols.h:2301
X509_EXTENSION_free
#define X509_EXTENSION_free
Definition: boringssl_prefix_symbols.h:2336
X509_STORE_set_get_issuer
OPENSSL_EXPORT void X509_STORE_set_get_issuer(X509_STORE *ctx, X509_STORE_CTX_get_issuer_fn get_issuer)
Definition: x509_lu.c:728
X509_CRL_set1_signature_algo
OPENSSL_EXPORT int X509_CRL_set1_signature_algo(X509_CRL *crl, const X509_ALGOR *algo)
Definition: x509cset.c:255
rsa_pss_params_st::saltLength
ASN1_INTEGER * saltLength
Definition: x509.h:1847
X509_LOOKUP_by_fingerprint
OPENSSL_EXPORT int X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, int type, unsigned char *bytes, int len, X509_OBJECT *ret)
Definition: x509_lu.c:147
X509_STORE_set_default_paths
OPENSSL_EXPORT int X509_STORE_set_default_paths(X509_STORE *ctx)
Definition: x509_d2.c:62
X509_STORE_get_check_revocation
OPENSSL_EXPORT X509_STORE_CTX_check_revocation_fn X509_STORE_get_check_revocation(X509_STORE *ctx)
Definition: x509_lu.c:756
i2d_DSAPrivateKey_bio
OPENSSL_EXPORT int i2d_DSAPrivateKey_bio(BIO *bp, DSA *dsa)
x509_revoked_st::STACK_OF
STACK_OF(X509_EXTENSION) *extensions
b
uint64_t b
Definition: abseil-cpp/absl/container/internal/layout_test.cc:53
X509_STORE_set_purpose
OPENSSL_EXPORT int X509_STORE_set_purpose(X509_STORE *ctx, int purpose)
Definition: x509_lu.c:687
X509_CRL_up_ref
OPENSSL_EXPORT int X509_CRL_up_ref(X509_CRL *crl)
Definition: x509cset.c:133
X509_LOOKUP_by_subject
OPENSSL_EXPORT int X509_LOOKUP_by_subject(X509_LOOKUP *ctx, int type, X509_NAME *name, X509_OBJECT *ret)
Definition: x509_lu.c:129
DEFINE_STACK_OF
#define DEFINE_STACK_OF(type)
Definition: stack.h:409
X509_get_signature_nid
OPENSSL_EXPORT int X509_get_signature_nid(const X509 *x509)
i2d_X509_CRL_fp
OPENSSL_EXPORT int i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl)
Definition: x_all.c:168
X509_STORE_get0_objects
#define X509_STORE_get0_objects
Definition: boringssl_prefix_symbols.h:2528
X509_policy_tree_get0_level
OPENSSL_EXPORT X509_POLICY_LEVEL * X509_policy_tree_get0_level(const X509_POLICY_TREE *tree, int i)
Definition: pcy_lib.c:74
private_key_st::key_data
char * key_data
Definition: x509.h:280
x509_attributes_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:104
X509_STORE_get1_crls
#define X509_STORE_get1_crls
Definition: boringssl_prefix_symbols.h:2531
X509_REVOKED_get_ext_d2i
OPENSSL_EXPORT void * X509_REVOKED_get_ext_d2i(const X509_REVOKED *revoked, int nid, int *out_critical, int *out_idx)
Definition: x509_ext.c:202
X509_issuer_name_hash
OPENSSL_EXPORT unsigned long X509_issuer_name_hash(X509 *a)
Definition: x509_cmp.c:112
X509_get_pathlen
OPENSSL_EXPORT long X509_get_pathlen(X509 *x509)
Definition: v3_purp.c:922
X509_STORE_CTX_get_explicit_policy
OPENSSL_EXPORT int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2432
CRYPTO_EX_free
void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, int index, long argl, void *argp)
Definition: ex_data.h:174
PKCS8_pkey_get0
OPENSSL_EXPORT int PKCS8_pkey_get0(ASN1_OBJECT **ppkalg, const unsigned char **pk, int *ppklen, X509_ALGOR **pa, PKCS8_PRIV_KEY_INFO *p8)
X509v3_get_ext_by_NID
OPENSSL_EXPORT int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, int nid, int lastpos)
Definition: x509_v3.c:75
X509_STORE_CTX_set_cert
OPENSSL_EXPORT void X509_STORE_CTX_set_cert(X509_STORE_CTX *c, X509 *x)
Definition: x509_vfy.c:2157
X509_REQ_get_subject_name
OPENSSL_EXPORT X509_NAME * X509_REQ_get_subject_name(const X509_REQ *req)
Definition: x509_req.c:118
Netscape_spki_st::sig_algor
X509_ALGOR * sig_algor
Definition: x509.h:310
setup.idx
idx
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:197
DECLARE_STACK_OF
#define DECLARE_STACK_OF(type)
Definition: stack.h:127
X509_get_default_cert_file
const OPENSSL_EXPORT char * X509_get_default_cert_file(void)
Definition: x509_def.c:90
i2d_re_X509_CRL_tbs
OPENSSL_EXPORT int i2d_re_X509_CRL_tbs(X509_CRL *crl, unsigned char **outp)
Definition: x509cset.c:244
POLICYQUALINFO_st
Definition: x509v3.h:273
X509_CRL_sign
OPENSSL_EXPORT int X509_CRL_sign(X509_CRL *crl, EVP_PKEY *pkey, const EVP_MD *md)
Definition: x_all.c:116
X509_CRL_get_lastUpdate
OPENSSL_EXPORT ASN1_TIME * X509_CRL_get_lastUpdate(X509_CRL *crl)
Definition: x509cset.c:154
X509_name_entry_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:88
X509_REQ_check_private_key
OPENSSL_EXPORT int X509_REQ_check_private_key(X509_REQ *x509, EVP_PKEY *pkey)
Definition: x509_req.c:130
private_key_st
Definition: x509.h:269
X509_STORE_CTX_set_verify
OPENSSL_EXPORT void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, X509_STORE_CTX_verify_fn verify)
X509v3_get_ext_by_critical
OPENSSL_EXPORT int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x, int crit, int lastpos)
Definition: x509_v3.c:105
X509_get_default_cert_file_env
const OPENSSL_EXPORT char * X509_get_default_cert_file_env(void)
Definition: x509_def.c:100
X509_get_default_cert_area
const OPENSSL_EXPORT char * X509_get_default_cert_area(void)
Definition: x509_def.c:80
X509_STORE_CTX_cleanup_fn
int(* X509_STORE_CTX_cleanup_fn)(X509_STORE_CTX *ctx)
Definition: x509.h:1899
X509_add1_reject_object
OPENSSL_EXPORT int X509_add1_reject_object(X509 *x, ASN1_OBJECT *obj)
X509_set_subject_name
OPENSSL_EXPORT int X509_set_subject_name(X509 *x509, X509_NAME *name)
Definition: x509_set.c:116
X509_NAME_ENTRY_dup
OPENSSL_EXPORT X509_NAME_ENTRY * X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne)
ec_key_st
Definition: third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/internal.h:723
X509_EXTENSION_dup
OPENSSL_EXPORT X509_EXTENSION * X509_EXTENSION_dup(X509_EXTENSION *ex)
X509_PUBKEY_get
OPENSSL_EXPORT EVP_PKEY * X509_PUBKEY_get(X509_PUBKEY *key)
Definition: x_pubkey.c:134
X509_STORE_CTX_get_chain
#define X509_STORE_CTX_get_chain
Definition: boringssl_prefix_symbols.h:2499
tm
static uv_timer_t tm
Definition: test-tcp-open.c:41
d2i_X509_CRL_bio
OPENSSL_EXPORT X509_CRL * d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl)
Definition: x_all.c:173
ASN1_item_sign
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
X509_STORE_CTX_get1_chain
#define X509_STORE_CTX_get1_chain
Definition: boringssl_prefix_symbols.h:2497
X509_STORE_set_verify_cb
OPENSSL_EXPORT void X509_STORE_set_verify_cb(X509_STORE *ctx, X509_STORE_CTX_verify_cb verify_cb)
Definition: x509_lu.c:717
X509_STORE_CTX_cert_crl_fn
int(* X509_STORE_CTX_cert_crl_fn)(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x)
Definition: x509.h:1892
X509_CRL_get0_by_serial
OPENSSL_EXPORT int X509_CRL_get0_by_serial(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *serial)
i2d_DSA_PUBKEY_bio
OPENSSL_EXPORT int i2d_DSA_PUBKEY_bio(BIO *bp, DSA *dsa)
value
const char * value
Definition: hpack_parser_table.cc:165
X509_STORE_set_check_issued
OPENSSL_EXPORT void X509_STORE_set_check_issued(X509_STORE *ctx, X509_STORE_CTX_check_issued_fn check_issued)
Definition: x509_lu.c:739
X509_CRL_set1_signature_value
OPENSSL_EXPORT int X509_CRL_set1_signature_value(X509_CRL *crl, const uint8_t *sig, size_t sig_len)
Definition: x509cset.c:275
i2d_X509_REQ_bio
OPENSSL_EXPORT int i2d_X509_REQ_bio(BIO *bp, X509_REQ *req)
Definition: x_all.c:198
X509_info_st::enc_data
char * enc_data
Definition: x509.h:294
pp
const uint8_t ** pp
Definition: ssl_x509.cc:1020
X509at_delete_attr
OPENSSL_EXPORT X509_ATTRIBUTE * X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc)
Definition: x509_att.c:112
X509_info_st
Definition: x509.h:287
X509_STORE_CTX_get_current_cert
OPENSSL_EXPORT X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2120
X509_NAME_get_text_by_OBJ
OPENSSL_EXPORT int X509_NAME_get_text_by_OBJ(const X509_NAME *name, const ASN1_OBJECT *obj, char *buf, int len)
Definition: x509name.c:81
X509_NAME_ENTRY_set_object
OPENSSL_EXPORT int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, const ASN1_OBJECT *obj)
Definition: x509name.c:343
X509_get0_notBefore
const OPENSSL_EXPORT ASN1_TIME * X509_get0_notBefore(const X509 *x509)
Definition: x509_set.c:145
X509_EXTENSION_get_data
OPENSSL_EXPORT ASN1_OCTET_STRING * X509_EXTENSION_get_data(X509_EXTENSION *ne)
Definition: x509_v3.c:267
X509_VERIFY_PARAM_set1_ip_asc
OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_ip_asc(X509_VERIFY_PARAM *param, const char *ipasc)
Definition: x509_vpm.c:497
X509_STORE_CTX_get_error
OPENSSL_EXPORT int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2105
X509_algor_st
Definition: x509.h:113
rsa_pss_params_st::maskHash
X509_ALGOR * maskHash
Definition: x509.h:1852
i2d_X509_CRL_bio
OPENSSL_EXPORT int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl)
Definition: x_all.c:178
attr
OPENSSL_EXPORT X509_ATTRIBUTE * attr
Definition: x509.h:1666
benchmark.md
md
Definition: benchmark.py:86
type
OPENSSL_EXPORT const ASN1_OBJECT int type
Definition: x509.h:1671
X509_EXTENSION_create_by_OBJ
OPENSSL_EXPORT X509_EXTENSION * X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex, const ASN1_OBJECT *obj, int crit, const ASN1_OCTET_STRING *data)
Definition: x509_v3.c:201
BSSL_NAMESPACE_BEGIN
Definition: trust_token_test.cc:45
X509at_get_attr
OPENSSL_EXPORT X509_ATTRIBUTE * X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc)
Definition: x509_att.c:104
X509_policy_node_get0_qualifiers
#define X509_policy_node_get0_qualifiers
Definition: boringssl_prefix_symbols.h:2695
X509_OBJECT_get0_X509
OPENSSL_EXPORT X509 * X509_OBJECT_get0_X509(const X509_OBJECT *a)
Definition: x509_lu.c:437
X509_verify_cert_error_string
const OPENSSL_EXPORT char * X509_verify_cert_error_string(long err)
Definition: x509_txt.c:59
field
const FieldDescriptor * field
Definition: bloaty/third_party/protobuf/src/google/protobuf/compiler/parser_unittest.cc:2692
X509_NAME_ENTRY_set
OPENSSL_EXPORT int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne)
Definition: x_name.c:528
X509_STORE_CTX_get_error_depth
OPENSSL_EXPORT int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2115
d2i_PUBKEY_fp
OPENSSL_EXPORT EVP_PKEY * d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a)
X509_STORE_CTX_set_chain
OPENSSL_EXPORT void X509_STORE_CTX_set_chain(X509_STORE_CTX *c, STACK_OF(X509) *sk)
Definition: x509_vfy.c:2162
key
const char * key
Definition: hpack_parser_table.cc:164
X509_NAME_digest
OPENSSL_EXPORT int X509_NAME_digest(const X509_NAME *name, const EVP_MD *md, uint8_t *out, unsigned *out_len)
X509_TRUST_cleanup
OPENSSL_EXPORT void X509_TRUST_cleanup(void)
Definition: x509_trs.c:256
benchmark.FILE
FILE
Definition: benchmark.py:21
x509_revoked_st::serialNumber
ASN1_INTEGER * serialNumber
Definition: x509.h:253
d2i_RSAPublicKey_bio
OPENSSL_EXPORT RSA * d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa)
X509_STORE_CTX_set_default
OPENSSL_EXPORT int X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name)
Definition: x509_vfy.c:2437
X509_policy_node_get0_parent
const OPENSSL_EXPORT X509_POLICY_NODE * X509_policy_node_get0_parent(const X509_POLICY_NODE *node)
Definition: pcy_lib.c:149
X509_PUBKEY_set0_param
OPENSSL_EXPORT int X509_PUBKEY_set0_param(X509_PUBKEY *pub, ASN1_OBJECT *obj, int param_type, void *param_value, uint8_t *key, int key_len)
Definition: x_pubkey.c:184
nid
OPENSSL_EXPORT int nid
Definition: x509.h:1677
X509_CRL_get_ext_by_NID
OPENSSL_EXPORT int X509_CRL_get_ext_by_NID(const X509_CRL *x, int nid, int lastpos)
Definition: x509_ext.c:72
X509_STORE_CTX_get_ex_new_index
OPENSSL_EXPORT int X509_STORE_CTX_get_ex_new_index(long argl, void *argp, CRYPTO_EX_unused *unused, CRYPTO_EX_dup *dup_unused, CRYPTO_EX_free *free_func)
Definition: x509_vfy.c:2078
X509_add1_trust_object
OPENSSL_EXPORT int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj)
x509_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:139
X509_cmp
OPENSSL_EXPORT int X509_cmp(const X509 *a, const X509 *b)
Definition: x509_cmp.c:155
X509_INFO_new
OPENSSL_EXPORT X509_INFO * X509_INFO_new(void)
Definition: x_info.c:64
private_key_st::cipher
EVP_CIPHER_INFO cipher
Definition: x509.h:284
rsa_pss_params_st
Definition: x509.h:1844
absl::flags_internal
Definition: abseil-cpp/absl/flags/commandlineflag.h:40
X509_ATTRIBUTE_set1_data
OPENSSL_EXPORT int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype, const void *data, int len)
Definition: x509_att.c:274
x509_lookup_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:300
X509_CRL_cmp
OPENSSL_EXPORT int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b)
Definition: x509_cmp.c:97
d2i_DSA_PUBKEY_bio
OPENSSL_EXPORT DSA * d2i_DSA_PUBKEY_bio(BIO *bp, DSA **dsa)
i2d_ECPrivateKey_bio
OPENSSL_EXPORT int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey)
X509_CRL_get_ext_by_critical
OPENSSL_EXPORT int X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos)
Definition: x509_ext.c:83
X509_STORE_get0_param
OPENSSL_EXPORT X509_VERIFY_PARAM * X509_STORE_get0_param(X509_STORE *ctx)
Definition: x509_lu.c:702
X509_CRL_set_meth_data
OPENSSL_EXPORT void X509_CRL_set_meth_data(X509_CRL *crl, void *dat)
Definition: x_crl.c:557
X509_reject_clear
OPENSSL_EXPORT void X509_reject_clear(X509 *x)
X509_STORE_get1_certs
#define X509_STORE_get1_certs
Definition: boringssl_prefix_symbols.h:2530
X509_REQ_set_pubkey
OPENSSL_EXPORT int X509_REQ_set_pubkey(X509_REQ *req, EVP_PKEY *pkey)
Definition: x509rset.c:79
X509_set_notAfter
OPENSSL_EXPORT int X509_set_notAfter(X509 *x509, const ASN1_TIME *tm)
Definition: x509_set.c:183
X509_check_private_key
OPENSSL_EXPORT int X509_check_private_key(X509 *x509, const EVP_PKEY *pkey)
Definition: x509_cmp.c:302
X509_VERIFY_PARAM_set1_host
OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param, const char *name, size_t namelen)
Definition: x509_vpm.c:440
X509_VERIFY_PARAM_set_flags
OPENSSL_EXPORT int X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param, unsigned long flags)
Definition: x509_vpm.c:353
NETSCAPE_SPKI_b64_decode
OPENSSL_EXPORT NETSCAPE_SPKI * NETSCAPE_SPKI_b64_decode(const char *str, int len)
Definition: x509spki.c:80
X509_check_trust
OPENSSL_EXPORT int X509_check_trust(X509 *x, int id, int flags)
Definition: x509_trs.c:117
X509_NAME_get0_der
OPENSSL_EXPORT int X509_NAME_get0_der(X509_NAME *nm, const unsigned char **pder, size_t *pderlen)
Definition: x_name.c:533
ret
UniquePtr< SSL_SESSION > ret
Definition: ssl_x509.cc:1029
X509_ATTRIBUTE_get0_object
OPENSSL_EXPORT ASN1_OBJECT * X509_ATTRIBUTE_get0_object(X509_ATTRIBUTE *attr)
Definition: x509_att.c:330
X509_LOOKUP_shutdown
OPENSSL_EXPORT int X509_LOOKUP_shutdown(X509_LOOKUP *ctx)
Definition: x509_lu.c:108
X509_load_crl_file
OPENSSL_EXPORT int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type)
Definition: by_file.c:182
X509_policy_level_get0_node
OPENSSL_EXPORT X509_POLICY_NODE * X509_policy_level_get0_node(X509_POLICY_LEVEL *level, int i)
Definition: pcy_lib.c:119
X509_info_st::x_pkey
X509_PKEY * x_pkey
Definition: x509.h:290
NETSCAPE_SPKI_sign
OPENSSL_EXPORT int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *spki, EVP_PKEY *pkey, const EVP_MD *md)
Definition: x_all.c:131
i2d_RSA_PUBKEY_bio
OPENSSL_EXPORT int i2d_RSA_PUBKEY_bio(BIO *bp, RSA *rsa)
X509_STORE_free
OPENSSL_EXPORT void X509_STORE_free(X509_STORE *v)
Definition: x509_lu.c:242
fix_build_deps.r
r
Definition: fix_build_deps.py:491
check_crl
static int check_crl(X509_STORE_CTX *ctx, X509_CRL *crl)
Definition: x509_vfy.c:1555
i2d_PKCS8_fp
OPENSSL_EXPORT int i2d_PKCS8_fp(FILE *fp, X509_SIG *p8)
X509_NAME_hash_old
OPENSSL_EXPORT unsigned long X509_NAME_hash_old(X509_NAME *x)
Definition: x509_cmp.c:231
X509_REQ_get_attr_count
OPENSSL_EXPORT int X509_REQ_get_attr_count(const X509_REQ *req)
Definition: x509_req.c:223
X509_REQ_sign
OPENSSL_EXPORT int X509_REQ_sign(X509_REQ *req, EVP_PKEY *pkey, const EVP_MD *md)
Definition: x_all.c:103
X509at_get_attr_by_NID
OPENSSL_EXPORT int X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, int nid, int lastpos)
Definition: x509_att.c:74
X509_REQ_add1_attr_by_txt
OPENSSL_EXPORT int X509_REQ_add1_attr_by_txt(X509_REQ *req, const char *attrname, int attrtype, const unsigned char *data, int len)
Definition: x509_req.c:276
X509_get0_uids
OPENSSL_EXPORT void X509_get0_uids(const X509 *x509, const ASN1_BIT_STRING **out_issuer_uid, const ASN1_BIT_STRING **out_subject_uid)
Definition: x509_set.c:209
dsa_st
Definition: dsa.h:398
X509_gmtime_adj
OPENSSL_EXPORT ASN1_TIME * X509_gmtime_adj(ASN1_TIME *s, long offset_sec)
Definition: x509_vfy.c:1945
X509_issuer_and_serial_cmp
OPENSSL_EXPORT int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b)
Definition: x509_cmp.c:74
X509_cmp_current_time
OPENSSL_EXPORT int X509_cmp_current_time(const ASN1_TIME *s)
Definition: x509_vfy.c:1875
X509_policy_tree_free
OPENSSL_EXPORT void X509_policy_tree_free(X509_POLICY_TREE *tree)
Definition: pcy_tree.c:701
i2d_PUBKEY_bio
OPENSSL_EXPORT int i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey)
X509_CRL_get_ext
OPENSSL_EXPORT X509_EXTENSION * X509_CRL_get_ext(const X509_CRL *x, int loc)
Definition: x509_ext.c:88
cpp.gmock_class.set
set
Definition: bloaty/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class.py:44
X509_STORE_get_get_crl
OPENSSL_EXPORT X509_STORE_CTX_get_crl_fn X509_STORE_get_get_crl(X509_STORE *ctx)
Definition: x509_lu.c:767
X509_STORE_get_lookup_crls
OPENSSL_EXPORT X509_STORE_CTX_lookup_crls_fn X509_STORE_get_lookup_crls(X509_STORE *ctx)
Definition: x509_lu.c:811
X509_ALGOR_dup
OPENSSL_EXPORT X509_ALGOR * X509_ALGOR_dup(X509_ALGOR *xn)
OPENSSL_EXPORT
#define OPENSSL_EXPORT
Definition: base.h:222
X509_set1_notBefore
OPENSSL_EXPORT int X509_set1_notBefore(X509 *x509, const ASN1_TIME *tm)
Definition: x509_set.c:123
BORINGSSL_MAKE_DELETER
#define BORINGSSL_MAKE_DELETER(type, deleter)
Definition: base.h:506
X509_STORE_set_lookup_certs
OPENSSL_EXPORT void X509_STORE_set_lookup_certs(X509_STORE *ctx, X509_STORE_CTX_lookup_certs_fn lookup_certs)
Definition: x509_lu.c:794
X509_alias_get0
OPENSSL_EXPORT unsigned char * X509_alias_get0(X509 *x, int *len)
X509_STORE_CTX_get0_cert
OPENSSL_EXPORT X509 * X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2416
X509_NAME_print
OPENSSL_EXPORT int X509_NAME_print(BIO *bp, const X509_NAME *name, int obase)
Definition: t_x509.c:318
X509_CRL_add_ext
OPENSSL_EXPORT int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc)
Definition: x509_ext.c:110
X509_get_X509_PUBKEY
OPENSSL_EXPORT X509_PUBKEY * X509_get_X509_PUBKEY(const X509 *x509)
Definition: x509_set.c:237
X509_VERIFY_PARAM_lookup
const OPENSSL_EXPORT X509_VERIFY_PARAM * X509_VERIFY_PARAM_lookup(const char *name)
Definition: x509_vpm.c:624
X509_CRL_get_ext_d2i
OPENSSL_EXPORT void * X509_CRL_get_ext_d2i(const X509_CRL *crl, int nid, int *out_critical, int *out_idx)
Definition: x509_ext.c:98
X509_VERIFY_PARAM_set1_ip
OPENSSL_EXPORT int X509_VERIFY_PARAM_set1_ip(X509_VERIFY_PARAM *param, const unsigned char *ip, size_t iplen)
Definition: x509_vpm.c:484
X509_SIG_get0
OPENSSL_EXPORT void X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **out_alg, const ASN1_OCTET_STRING **out_digest)
X509_REVOKED_get_ext_by_NID
OPENSSL_EXPORT int X509_REVOKED_get_ext_by_NID(const X509_REVOKED *x, int nid, int lastpos)
Definition: x509_ext.c:170
X509_getm_notAfter
OPENSSL_EXPORT ASN1_TIME * X509_getm_notAfter(X509 *x)
Definition: x509_set.c:193
X509_CRL_get0_lastUpdate
const OPENSSL_EXPORT ASN1_TIME * X509_CRL_get0_lastUpdate(const X509_CRL *crl)
Definition: x509cset.c:144
i2d_EC_PUBKEY_fp
OPENSSL_EXPORT int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey)
X509_NAME_get_index_by_OBJ
OPENSSL_EXPORT int X509_NAME_get_index_by_OBJ(const X509_NAME *name, const ASN1_OBJECT *obj, int lastpos)
Definition: x509name.c:117
X509_STORE_set_get_crl
OPENSSL_EXPORT void X509_STORE_set_get_crl(X509_STORE *ctx, X509_STORE_CTX_get_crl_fn get_crl)
Definition: x509_lu.c:761
X509_REVOKED_free
#define X509_REVOKED_free
Definition: boringssl_prefix_symbols.h:2467
x509_trust_st::arg2
void * arg2
Definition: x509.h:152
X509_STORE_CTX_purpose_inherit
OPENSSL_EXPORT int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, int purpose, int trust)
Definition: x509_vfy.c:2198
X509_VERIFY_PARAM_set1
OPENSSL_EXPORT int X509_VERIFY_PARAM_set1(X509_VERIFY_PARAM *to, const X509_VERIFY_PARAM *from)
Definition: x509_vpm.c:309
X509_set_serialNumber
OPENSSL_EXPORT int X509_set_serialNumber(X509 *x509, const ASN1_INTEGER *serial)
Definition: x509_set.c:92
X509_print_ex_fp
OPENSSL_EXPORT int X509_print_ex_fp(FILE *bp, X509 *x, unsigned long nmflag, unsigned long cflag)
Definition: t_x509.c:70
X509_REQ_add_extensions_nid
OPENSSL_EXPORT int X509_REQ_add_extensions_nid(X509_REQ *req, const STACK_OF(X509_EXTENSION) *exts, int nid)
Definition: x509_req.c:198
X509_STORE_CTX_set_verify_cb
OPENSSL_EXPORT void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, int(*verify_cb)(int, X509_STORE_CTX *))
Definition: x509_vfy.c:2421
X509_NAME_dup
OPENSSL_EXPORT X509_NAME * X509_NAME_dup(X509_NAME *xn)
X509_REVOKED_add1_ext_i2d
OPENSSL_EXPORT int X509_REVOKED_add1_ext_i2d(X509_REVOKED *x, int nid, void *value, int crit, unsigned long flags)
Definition: x509_ext.c:208
X509_STORE_CTX_get0_parent_ctx
OPENSSL_EXPORT X509_STORE_CTX * X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2152
X509v3_get_ext
OPENSSL_EXPORT X509_EXTENSION * X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc)
Definition: x509_v3.c:128
X509_get_ext
OPENSSL_EXPORT X509_EXTENSION * X509_get_ext(const X509 *x, int loc)
Definition: x509_ext.c:136
obj.h
X509_OBJECT_free_contents
OPENSSL_EXPORT void X509_OBJECT_free_contents(X509_OBJECT *a)
Definition: x509_lu.c:420
X509_STORE_get_verify_cb
OPENSSL_EXPORT X509_STORE_CTX_verify_cb X509_STORE_get_verify_cb(X509_STORE *ctx)
Definition: x509_lu.c:723
X509_get_ex_data
OPENSSL_EXPORT void * X509_get_ex_data(X509 *r, int idx)
X509_info_st::crl
X509_CRL * crl
Definition: x509.h:289
X509_TRUST_get_flags
OPENSSL_EXPORT int X509_TRUST_get_flags(const X509_TRUST *xp)
Definition: x509_trs.c:265
X509_OBJECT_up_ref_count
OPENSSL_EXPORT int X509_OBJECT_up_ref_count(X509_OBJECT *a)
Definition: x509_lu.c:407
X509_STORE_CTX_get0_param
OPENSSL_EXPORT X509_VERIFY_PARAM * X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx)
Definition: x509_vfy.c:2446
X509_EXTENSION_set_critical
OPENSSL_EXPORT int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit)
Definition: x509_v3.c:240
X509_PUBKEY_set
OPENSSL_EXPORT int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
X509_SIG_free
#define X509_SIG_free
Definition: boringssl_prefix_symbols.h:2481
X509_VERIFY_PARAM_clear_flags
OPENSSL_EXPORT int X509_VERIFY_PARAM_clear_flags(X509_VERIFY_PARAM *param, unsigned long flags)
Definition: x509_vpm.c:361
len
OPENSSL_EXPORT const ASN1_OBJECT int const unsigned char int len
Definition: x509.h:1672
X509_CRL_get_ext_by_OBJ
OPENSSL_EXPORT int X509_CRL_get_ext_by_OBJ(const X509_CRL *x, const ASN1_OBJECT *obj, int lastpos)
Definition: x509_ext.c:77
X509_CRL_get0_by_cert
OPENSSL_EXPORT int X509_CRL_get0_by_cert(X509_CRL *crl, X509_REVOKED **ret, X509 *x)
d2i_RSAPrivateKey_bio
OPENSSL_EXPORT RSA * d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa)
X509_signature_print
OPENSSL_EXPORT int X509_signature_print(BIO *bio, const X509_ALGOR *alg, const ASN1_STRING *sig)
Definition: t_x509.c:296
X509_VERIFY_PARAM_set_purpose
OPENSSL_EXPORT int X509_VERIFY_PARAM_set_purpose(X509_VERIFY_PARAM *param, int purpose)
Definition: x509_vpm.c:373
X509_STORE_set_depth
OPENSSL_EXPORT int X509_STORE_set_depth(X509_STORE *store, int depth)
Definition: x509_lu.c:681
i2d_DHparams_bio
OPENSSL_EXPORT int i2d_DHparams_bio(BIO *bp, const DH *dh)
i2d_EC_PUBKEY_bio
OPENSSL_EXPORT int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey)
X509_STORE_CTX_check_issued_fn
int(* X509_STORE_CTX_check_issued_fn)(X509_STORE_CTX *ctx, X509 *x, X509 *issuer)
Definition: x509.h:1886
X509_CRL_set_version
OPENSSL_EXPORT int X509_CRL_set_version(X509_CRL *crl, long version)
Definition: x509cset.c:65
Netscape_spkac_st::challenge
ASN1_IA5STRING * challenge
Definition: x509.h:305
X509_REQ_dup
OPENSSL_EXPORT X509_REQ * X509_REQ_dup(X509_REQ *req)
dh_st
Definition: dh.h:305
NETSCAPE_SPKI_verify
OPENSSL_EXPORT int NETSCAPE_SPKI_verify(NETSCAPE_SPKI *spki, EVP_PKEY *pkey)
Definition: x_all.c:137
X509_VERIFY_PARAM_free
OPENSSL_EXPORT void X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param)
Definition: x509_vpm.c:180
X509_VERIFY_PARAM_table_cleanup
OPENSSL_EXPORT void X509_VERIFY_PARAM_table_cleanup(void)
Definition: x509_vpm.c:646
client.level
level
Definition: examples/python/async_streaming/client.py:118
X509_LOOKUP_by_issuer_serial
OPENSSL_EXPORT int X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, int type, X509_NAME *name, ASN1_INTEGER *serial, X509_OBJECT *ret)
Definition: x509_lu.c:139
X509_CRL_get_ext_count
OPENSSL_EXPORT int X509_CRL_get_ext_count(const X509_CRL *x)
Definition: x509_ext.c:67
Netscape_spkac_st
Definition: x509.h:303
rsa_st
Definition: rsa.h:732
cleanup
Definition: cleanup.py:1
X509_REQ_delete_attr
OPENSSL_EXPORT X509_ATTRIBUTE * X509_REQ_delete_attr(X509_REQ *req, int loc)
Definition: x509_req.c:244
X509_REQ_get_attr_by_NID
OPENSSL_EXPORT int X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos)
Definition: x509_req.c:228
d2i_EC_PUBKEY_bio
OPENSSL_EXPORT EC_KEY * d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey)
asn1_type_st
Definition: asn1.h:1481
X509_STORE_set_check_crl
OPENSSL_EXPORT void X509_STORE_set_check_crl(X509_STORE *ctx, X509_STORE_CTX_check_crl_fn check_crl)
Definition: x509_lu.c:772
X509_EXTENSION_set_data
OPENSSL_EXPORT int X509_EXTENSION_set_data(X509_EXTENSION *ex, const ASN1_OCTET_STRING *data)
Definition: x509_v3.c:248
X509_CRL_get_signature_nid
OPENSSL_EXPORT int X509_CRL_get_signature_nid(const X509_CRL *crl)
Definition: x509cset.c:188
X509_VERIFY_PARAM_add0_table
OPENSSL_EXPORT int X509_VERIFY_PARAM_add0_table(X509_VERIFY_PARAM *param)
Definition: x509_vpm.c:586
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
i2d_ECPrivateKey_fp
OPENSSL_EXPORT int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey)
X509_find_by_subject
OPENSSL_EXPORT X509 * X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name)
Definition: x509_cmp.c:275
x509_revoked_st::sequence
int sequence
Definition: x509.h:260
length
std::size_t length
Definition: abseil-cpp/absl/time/internal/test_util.cc:57
X509v3_add_ext
#define X509v3_add_ext
Definition: boringssl_prefix_symbols.h:2744
X509_find_by_issuer_and_serial
OPENSSL_EXPORT X509 * X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name, ASN1_INTEGER *serial)
Definition: x509_cmp.c:253
X509_STORE_get_by_subject
OPENSSL_EXPORT int X509_STORE_get_by_subject(X509_STORE_CTX *vs, int type, X509_NAME *name, X509_OBJECT *ret)
Definition: x509_lu.c:299
X509_STORE_CTX_verify_cb
int(* X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *)
Definition: x509.h:1882
X509at_add1_attr
#define X509at_add1_attr
Definition: boringssl_prefix_symbols.h:2735
mkowners.depth
depth
Definition: mkowners.py:114
regress.m
m
Definition: regress/regress.py:25
method
NSString * method
Definition: ProtoMethod.h:28
X509_CERT_AUX_print
OPENSSL_EXPORT int X509_CERT_AUX_print(BIO *bp, X509_CERT_AUX *x, int indent)
Definition: t_x509a.c:68
X509_get_default_private_dir
const OPENSSL_EXPORT char * X509_get_default_private_dir(void)
Definition: x509_def.c:75
Netscape_spkac_st::pubkey
X509_PUBKEY * pubkey
Definition: x509.h:304
thread.h
X509_NAME_ENTRY_create_by_OBJ
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:315
X509_STORE_CTX_new
OPENSSL_EXPORT X509_STORE_CTX * X509_STORE_CTX_new(void)
Definition: x509_vfy.c:2241
pkcs8_priv_key_info_st
Definition: third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h:66
X509_NAME_add_entry_by_txt
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:209
X509_time_adj_ex
OPENSSL_EXPORT ASN1_TIME * X509_time_adj_ex(ASN1_TIME *s, int offset_day, long offset_sec, time_t *t)
Definition: x509_vfy.c:1955
X509_keyid_get0
OPENSSL_EXPORT unsigned char * X509_keyid_get0(X509 *x, int *len)
X509_CRL_METHOD_free
OPENSSL_EXPORT void X509_CRL_METHOD_free(X509_CRL_METHOD *m)
Definition: x_crl.c:550
X509_STORE_up_ref
OPENSSL_EXPORT int X509_STORE_up_ref(X509_STORE *store)
Definition: x509_lu.c:220
ec.h
X509_NAME_ENTRY_create_by_NID
OPENSSL_EXPORT X509_NAME_ENTRY * X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid, int type, const unsigned char *bytes, int len)
Definition: x509name.c:302
X509_TRUST_get_trust
OPENSSL_EXPORT int X509_TRUST_get_trust(const X509_TRUST *xp)
Definition: x509_trs.c:275
X509_STORE_load_locations
OPENSSL_EXPORT int X509_STORE_load_locations(X509_STORE *ctx, const char *file, const char *dir)
Definition: x509_d2.c:82
EVP_PKEY2PKCS8
OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO * EVP_PKEY2PKCS8(EVP_PKEY *pkey)
X509_STORE_CTX_get_ex_data
OPENSSL_EXPORT void * X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx, int idx)
Definition: x509_vfy.c:2100
X509_set_ex_data
OPENSSL_EXPORT int X509_set_ex_data(X509 *r, int idx, void *arg)
X509_REVOKED_get0_revocationDate
const OPENSSL_EXPORT ASN1_TIME * X509_REVOKED_get0_revocationDate(const X509_REVOKED *revoked)
Definition: x509cset.c:193
d2i_DSAPrivateKey_fp
OPENSSL_EXPORT DSA * d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa)
X509_REQ_set_version
OPENSSL_EXPORT int X509_REQ_set_version(X509_REQ *req, long version)
Definition: x509rset.c:65
X509_REQ_get_pubkey
OPENSSL_EXPORT EVP_PKEY * X509_REQ_get_pubkey(X509_REQ *req)
Definition: x509_req.c:123
X509_get_serialNumber
OPENSSL_EXPORT ASN1_INTEGER * X509_get_serialNumber(X509 *x509)
Definition: x509_cmp.c:127
Netscape_spki_st::signature
ASN1_BIT_STRING * signature
Definition: x509.h:311
X509_issuer_name_hash_old
OPENSSL_EXPORT unsigned long X509_issuer_name_hash_old(X509 *a)
Definition: x509_cmp.c:117
X509_EXTENSION_create_by_NID
OPENSSL_EXPORT X509_EXTENSION * X509_EXTENSION_create_by_NID(X509_EXTENSION **ex, int nid, int crit, const ASN1_OCTET_STRING *data)
Definition: x509_v3.c:185
d2i_RSA_PUBKEY_bio
OPENSSL_EXPORT RSA * d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa)
X509_CRL_add1_ext_i2d
OPENSSL_EXPORT int X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit, unsigned long flags)
Definition: x509_ext.c:104
X509_name_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:95
X509_policy_tree_get0_policies
#define X509_policy_tree_get0_policies
Definition: boringssl_prefix_symbols.h:2698
X509_get_ext_d2i
OPENSSL_EXPORT void * X509_get_ext_d2i(const X509 *x509, int nid, int *out_critical, int *out_idx)
Definition: x509_ext.c:151
X509_TRUST_set_default
OPENSSL_EXPORT int(*)(int, X509 *, int) X509_TRUST_set_default(int(*trust)(int, X509 *, int))
Definition: x509.h:942
x509_store_ctx_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:312
X509_ATTRIBUTE_get0_type
OPENSSL_EXPORT ASN1_TYPE * X509_ATTRIBUTE_get0_type(X509_ATTRIBUTE *attr, int idx)
Definition: x509_att.c:351
X509_NAME_ENTRY_get_object
OPENSSL_EXPORT ASN1_OBJECT * X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne)
Definition: x509name.c:376
X509_CRL_diff
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:1971
NETSCAPE_SPKI_b64_encode
OPENSSL_EXPORT char * NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki)
Definition: x509spki.c:110
d2i_X509_REQ_fp
OPENSSL_EXPORT X509_REQ * d2i_X509_REQ_fp(FILE *fp, X509_REQ **req)
Definition: x_all.c:183
X509_PUBKEY_free
#define X509_PUBKEY_free
Definition: boringssl_prefix_symbols.h:2407
X509_ocspid_print
OPENSSL_EXPORT int X509_ocspid_print(BIO *bp, X509 *x)
Definition: t_x509.c:246
X509_get_notBefore
OPENSSL_EXPORT ASN1_TIME * X509_get_notBefore(const X509 *x509)
Definition: x509_set.c:158
X509_STORE_CTX_get0_store
OPENSSL_EXPORT X509_STORE * X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx)
Definition: x509_lu.c:827
i2d_PrivateKey_fp
OPENSSL_EXPORT int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey)
i2d_re_X509_tbs
OPENSSL_EXPORT int i2d_re_X509_tbs(X509 *x509, unsigned char **outp)
asn1_string_st
Definition: asn1.h:543
X509v3_delete_ext
OPENSSL_EXPORT X509_EXTENSION * X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc)
Definition: x509_v3.c:136
X509_CRL_add0_revoked
OPENSSL_EXPORT int X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev)
NETSCAPE_SPKI_free
#define NETSCAPE_SPKI_free
Definition: boringssl_prefix_symbols.h:1833
X509_REQ_sign_ctx
OPENSSL_EXPORT int X509_REQ_sign_ctx(X509_REQ *req, EVP_MD_CTX *ctx)
Definition: x_all.c:109
i
uint64_t i
Definition: abseil-cpp/absl/container/btree_benchmark.cc:230
asn1.h
X509_get_ext_count
OPENSSL_EXPORT int X509_get_ext_count(const X509 *x)
Definition: x509_ext.c:115
X509_OBJECT_retrieve_match
OPENSSL_EXPORT X509_OBJECT * X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h, X509_OBJECT *x)
Definition: x509_lu.c:598
X509_STORE_set_lookup_crls
OPENSSL_EXPORT void X509_STORE_set_lookup_crls(X509_STORE *ctx, X509_STORE_CTX_lookup_crls_fn lookup_crls)
Definition: x509_lu.c:805
stack.h
d2i_X509_AUX
OPENSSL_EXPORT X509 * d2i_X509_AUX(X509 **a, const unsigned char **pp, long length)
X509_TRUST_add
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:181
X509_REQ_print_ex
OPENSSL_EXPORT int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag, unsigned long cflag)
Definition: t_req.c:80
d2i_ECPrivateKey_bio
OPENSSL_EXPORT EC_KEY * d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey)
X509_ATTRIBUTE_create_by_NID
OPENSSL_EXPORT X509_ATTRIBUTE * X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid, int attrtype, const void *data, int len)
Definition: x509_att.c:203
X509_STORE_CTX_get_crl_fn
int(* X509_STORE_CTX_get_crl_fn)(X509_STORE_CTX *ctx, X509_CRL **crl, X509 *x)
Definition: x509.h:1889
X509_get0_notAfter
const OPENSSL_EXPORT ASN1_TIME * X509_get0_notAfter(const X509 *x509)
Definition: x509_set.c:188
X509_REQ_digest
OPENSSL_EXPORT int X509_REQ_digest(const X509_REQ *req, const EVP_MD *md, uint8_t *out, unsigned *out_len)


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:53