x_crl.c
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 #include <openssl/asn1.h>
58 #include <openssl/asn1t.h>
59 #include <openssl/digest.h>
60 #include <openssl/err.h>
61 #include <openssl/mem.h>
62 #include <openssl/obj.h>
63 #include <openssl/stack.h>
64 #include <openssl/thread.h>
65 #include <openssl/x509.h>
66 #include <openssl/x509v3.h>
67 
68 #include "../internal.h"
69 #include "internal.h"
70 
71 /*
72  * Method to handle CRL access. In general a CRL could be very large (several
73  * Mb) and can consume large amounts of resources if stored in memory by
74  * multiple processes. This method allows general CRL operations to be
75  * redirected to more efficient callbacks: for example a CRL entry database.
76  */
77 
78 #define X509_CRL_METHOD_DYNAMIC 1
79 
81  int flags;
82  int (*crl_init) (X509_CRL *crl);
83  int (*crl_free) (X509_CRL *crl);
85  ASN1_INTEGER *ser, X509_NAME *issuer);
86  int (*crl_verify) (X509_CRL *crl, EVP_PKEY *pk);
87 };
88 
89 static int X509_REVOKED_cmp(const X509_REVOKED **a, const X509_REVOKED **b);
90 static int setup_idp(X509_CRL *crl, ISSUING_DIST_POINT *idp);
91 
93  ASN1_SIMPLE(X509_REVOKED,serialNumber, ASN1_INTEGER),
94  ASN1_SIMPLE(X509_REVOKED,revocationDate, ASN1_TIME),
97 
98 static int def_crl_verify(X509_CRL *crl, EVP_PKEY *r);
99 static int def_crl_lookup(X509_CRL *crl,
100  X509_REVOKED **ret, ASN1_INTEGER *serial,
101  X509_NAME *issuer);
102 
104  0,
105  0, 0,
107  def_crl_verify
108 };
109 
111 
112 /*
113  * The X509_CRL_INFO structure needs a bit of customisation. Since we cache
114  * the original encoding the signature wont be affected by reordering of the
115  * revoked field.
116  */
117 static int crl_inf_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
118  void *exarg)
119 {
120  X509_CRL_INFO *a = (X509_CRL_INFO *)*pval;
121 
122  if (!a || !a->revoked)
123  return 1;
124  switch (operation) {
125  /*
126  * Just set cmp function here. We don't sort because that would
127  * affect the output of X509_CRL_print().
128  */
129  case ASN1_OP_D2I_POST:
130  /* TODO(davidben): Check that default |versions| are never encoded and
131  * that |extensions| is only present in v2. */
132 
133  (void)sk_X509_REVOKED_set_cmp_func(a->revoked, X509_REVOKED_cmp);
134  break;
135  }
136  return 1;
137 }
138 
139 
144  ASN1_SIMPLE(X509_CRL_INFO, lastUpdate, ASN1_TIME),
145  ASN1_OPT(X509_CRL_INFO, nextUpdate, ASN1_TIME),
149 
150 /*
151  * Set CRL entry issuer according to CRL certificate issuer extension. Check
152  * for unhandled critical CRL entry extensions.
153  */
154 
155 static int crl_set_issuers(X509_CRL *crl)
156 {
157 
158  size_t i, k;
159  int j;
160  GENERAL_NAMES *gens, *gtmp;
161  STACK_OF(X509_REVOKED) *revoked;
162 
163  revoked = X509_CRL_get_REVOKED(crl);
164 
165  gens = NULL;
166  for (i = 0; i < sk_X509_REVOKED_num(revoked); i++) {
167  X509_REVOKED *rev = sk_X509_REVOKED_value(revoked, i);
168  STACK_OF(X509_EXTENSION) *exts;
169  ASN1_ENUMERATED *reason;
171  gtmp = X509_REVOKED_get_ext_d2i(rev,
172  NID_certificate_issuer, &j, NULL);
173  if (!gtmp && (j != -1)) {
174  crl->flags |= EXFLAG_INVALID;
175  return 1;
176  }
177 
178  if (gtmp) {
179  gens = gtmp;
180  if (!crl->issuers) {
181  crl->issuers = sk_GENERAL_NAMES_new_null();
182  if (!crl->issuers)
183  return 0;
184  }
185  if (!sk_GENERAL_NAMES_push(crl->issuers, gtmp))
186  return 0;
187  }
188  rev->issuer = gens;
189 
190  reason = X509_REVOKED_get_ext_d2i(rev, NID_crl_reason, &j, NULL);
191  if (!reason && (j != -1)) {
192  crl->flags |= EXFLAG_INVALID;
193  return 1;
194  }
195 
196  if (reason) {
197  rev->reason = ASN1_ENUMERATED_get(reason);
198  ASN1_ENUMERATED_free(reason);
199  } else
200  rev->reason = CRL_REASON_NONE;
201 
202  /* Check for critical CRL entry extensions */
203 
204  exts = rev->extensions;
205 
206  for (k = 0; k < sk_X509_EXTENSION_num(exts); k++) {
207  ext = sk_X509_EXTENSION_value(exts, k);
211  continue;
212  crl->flags |= EXFLAG_CRITICAL;
213  break;
214  }
215  }
216 
217  }
218 
219  return 1;
220 
221 }
222 
223 /*
224  * The X509_CRL structure needs a bit of customisation. Cache some extensions
225  * and hash of the whole CRL.
226  */
227 static int crl_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
228  void *exarg)
229 {
230  X509_CRL *crl = (X509_CRL *)*pval;
231  STACK_OF(X509_EXTENSION) *exts;
233  size_t idx;
234  int i;
235 
236  switch (operation) {
237  case ASN1_OP_NEW_POST:
238  crl->idp = NULL;
239  crl->akid = NULL;
240  crl->flags = 0;
241  crl->idp_flags = 0;
243  crl->meth = default_crl_method;
244  crl->meth_data = NULL;
245  crl->issuers = NULL;
246  crl->crl_number = NULL;
247  crl->base_crl_number = NULL;
248  break;
249 
250  case ASN1_OP_D2I_POST:
251  if (!X509_CRL_digest(crl, EVP_sha1(), crl->sha1_hash, NULL)) {
252  return 0;
253  }
254 
255  crl->idp = X509_CRL_get_ext_d2i(crl,
257  NULL);
258  if (crl->idp != NULL) {
259  if (!setup_idp(crl, crl->idp)) {
260  return 0;
261  }
262  } else if (i != -1) {
263  return 0;
264  }
265 
266  crl->akid = X509_CRL_get_ext_d2i(crl,
268  NULL);
269  if (crl->akid == NULL && i != -1) {
270  return 0;
271  }
272 
273  crl->crl_number = X509_CRL_get_ext_d2i(crl,
274  NID_crl_number, &i, NULL);
275  if (crl->crl_number == NULL && i != -1) {
276  return 0;
277  }
278 
280  NULL);
281  if (crl->base_crl_number == NULL && i != -1) {
282  return 0;
283  }
284  /* Delta CRLs must have CRL number */
285  if (crl->base_crl_number && !crl->crl_number) {
287  return 0;
288  }
289 
290  /*
291  * See if we have any unhandled critical CRL extensions and indicate
292  * this in a flag. We only currently handle IDP so anything else
293  * critical sets the flag. This code accesses the X509_CRL structure
294  * directly: applications shouldn't do this.
295  */
296 
297  exts = crl->crl->extensions;
298 
299  for (idx = 0; idx < sk_X509_EXTENSION_num(exts); idx++) {
300  int nid;
301  ext = sk_X509_EXTENSION_value(exts, idx);
303  if (nid == NID_freshest_crl)
304  crl->flags |= EXFLAG_FRESHEST;
306  /* We handle IDP and deltas */
309  || (nid == NID_delta_crl))
310  continue;
311  crl->flags |= EXFLAG_CRITICAL;
312  break;
313  }
314  }
315 
316  if (!crl_set_issuers(crl))
317  return 0;
318 
319  if (crl->meth->crl_init) {
320  if (crl->meth->crl_init(crl) == 0)
321  return 0;
322  }
323  break;
324 
325  case ASN1_OP_FREE_POST:
326  /* |crl->meth| may be NULL if constructing the object failed before
327  * |ASN1_OP_NEW_POST| was run. */
328  if (crl->meth && crl->meth->crl_free) {
329  if (!crl->meth->crl_free(crl))
330  return 0;
331  }
332  if (crl->akid)
334  if (crl->idp)
338  sk_GENERAL_NAMES_pop_free(crl->issuers, GENERAL_NAMES_free);
339  break;
340  }
341  return 1;
342 }
343 
344 /* Convert IDP into a more convenient form */
345 
346 static int setup_idp(X509_CRL *crl, ISSUING_DIST_POINT *idp)
347 {
348  int idp_only = 0;
349  /* Set various flags according to IDP */
350  crl->idp_flags |= IDP_PRESENT;
351  if (idp->onlyuser > 0) {
352  idp_only++;
353  crl->idp_flags |= IDP_ONLYUSER;
354  }
355  if (idp->onlyCA > 0) {
356  idp_only++;
357  crl->idp_flags |= IDP_ONLYCA;
358  }
359  if (idp->onlyattr > 0) {
360  idp_only++;
361  crl->idp_flags |= IDP_ONLYATTR;
362  }
363 
364  if (idp_only > 1)
365  crl->idp_flags |= IDP_INVALID;
366 
367  if (idp->indirectCRL > 0)
368  crl->idp_flags |= IDP_INDIRECT;
369 
370  if (idp->onlysomereasons) {
371  crl->idp_flags |= IDP_REASONS;
372  if (idp->onlysomereasons->length > 0)
373  crl->idp_reasons = idp->onlysomereasons->data[0];
374  if (idp->onlysomereasons->length > 1)
375  crl->idp_reasons |= (idp->onlysomereasons->data[1] << 8);
377  }
378 
380 }
381 
382 ASN1_SEQUENCE_ref(X509_CRL, crl_cb) = {
384  ASN1_SIMPLE(X509_CRL, sig_alg, X509_ALGOR),
387 
389 
391 
395 
396 static int X509_REVOKED_cmp(const X509_REVOKED **a, const X509_REVOKED **b)
397 {
398  return ASN1_STRING_cmp((*a)->serialNumber, (*b)->serialNumber);
399 }
400 
402 {
404  inf = crl->crl;
405  if (!inf->revoked)
406  inf->revoked = sk_X509_REVOKED_new(X509_REVOKED_cmp);
407  if (!inf->revoked || !sk_X509_REVOKED_push(inf->revoked, rev)) {
409  return 0;
410  }
411  inf->enc.modified = 1;
412  return 1;
413 }
414 
415 int X509_CRL_verify(X509_CRL *crl, EVP_PKEY *pkey)
416 {
417  if (crl->meth->crl_verify)
418  return crl->meth->crl_verify(crl, pkey);
419  return 0;
420 }
421 
423  X509_REVOKED **ret, ASN1_INTEGER *serial)
424 {
425  if (crl->meth->crl_lookup)
426  return crl->meth->crl_lookup(crl, ret, serial, NULL);
427  return 0;
428 }
429 
431 {
432  if (crl->meth->crl_lookup)
433  return crl->meth->crl_lookup(crl, ret,
436  return 0;
437 }
438 
439 static int def_crl_verify(X509_CRL *crl, EVP_PKEY *r)
440 {
441  if (X509_ALGOR_cmp(crl->sig_alg, crl->crl->sig_alg) != 0) {
443  return 0;
444  }
445 
447  crl->sig_alg, crl->signature, crl->crl, r));
448 }
449 
450 static int crl_revoked_issuer_match(X509_CRL *crl, X509_NAME *nm,
451  X509_REVOKED *rev)
452 {
453  size_t i;
454 
455  if (!rev->issuer) {
456  if (!nm)
457  return 1;
459  return 1;
460  return 0;
461  }
462 
463  if (!nm)
464  nm = X509_CRL_get_issuer(crl);
465 
466  for (i = 0; i < sk_GENERAL_NAME_num(rev->issuer); i++) {
467  GENERAL_NAME *gen = sk_GENERAL_NAME_value(rev->issuer, i);
468  if (gen->type != GEN_DIRNAME)
469  continue;
471  return 1;
472  }
473  return 0;
474 
475 }
476 
477 static struct CRYPTO_STATIC_MUTEX g_crl_sort_lock = CRYPTO_STATIC_MUTEX_INIT;
478 
479 static int def_crl_lookup(X509_CRL *crl,
480  X509_REVOKED **ret, ASN1_INTEGER *serial,
481  X509_NAME *issuer)
482 {
483  X509_REVOKED rtmp, *rev;
484  size_t idx;
485  rtmp.serialNumber = serial;
486  /*
487  * Sort revoked into serial number order if not already sorted. Do this
488  * under a lock to avoid race condition.
489  */
490 
491  CRYPTO_STATIC_MUTEX_lock_read(&g_crl_sort_lock);
492  const int is_sorted = sk_X509_REVOKED_is_sorted(crl->crl->revoked);
493  CRYPTO_STATIC_MUTEX_unlock_read(&g_crl_sort_lock);
494 
495  if (!is_sorted) {
496  CRYPTO_STATIC_MUTEX_lock_write(&g_crl_sort_lock);
497  if (!sk_X509_REVOKED_is_sorted(crl->crl->revoked)) {
498  sk_X509_REVOKED_sort(crl->crl->revoked);
499  }
500  CRYPTO_STATIC_MUTEX_unlock_write(&g_crl_sort_lock);
501  }
502 
503  if (!sk_X509_REVOKED_find(crl->crl->revoked, &idx, &rtmp))
504  return 0;
505  /* Need to look for matching name */
506  for (; idx < sk_X509_REVOKED_num(crl->crl->revoked); idx++) {
507  rev = sk_X509_REVOKED_value(crl->crl->revoked, idx);
508  if (ASN1_INTEGER_cmp(rev->serialNumber, serial))
509  return 0;
510  if (crl_revoked_issuer_match(crl, issuer, rev)) {
511  if (ret)
512  *ret = rev;
514  return 2;
515  return 1;
516  }
517  }
518  return 0;
519 }
520 
522 {
523  if (meth == NULL)
525  else
526  default_crl_method = meth;
527 }
528 
530  int (*crl_free) (X509_CRL *crl),
531  int (*crl_lookup) (X509_CRL *crl,
532  X509_REVOKED **ret,
533  ASN1_INTEGER *ser,
534  X509_NAME *issuer),
535  int (*crl_verify) (X509_CRL *crl,
536  EVP_PKEY *pk))
537 {
539  m = OPENSSL_malloc(sizeof(X509_CRL_METHOD));
540  if (!m)
541  return NULL;
542  m->crl_init = crl_init;
543  m->crl_free = crl_free;
544  m->crl_lookup = crl_lookup;
545  m->crl_verify = crl_verify;
546  m->flags = X509_CRL_METHOD_DYNAMIC;
547  return m;
548 }
549 
551 {
552  if (!(m->flags & X509_CRL_METHOD_DYNAMIC))
553  return;
554  OPENSSL_free(m);
555 }
556 
557 void X509_CRL_set_meth_data(X509_CRL *crl, void *dat)
558 {
559  crl->meth_data = dat;
560 }
561 
563 {
564  return crl->meth_data;
565 }
NID_freshest_crl
#define NID_freshest_crl
Definition: nid.h:3809
def_crl_lookup
static int def_crl_lookup(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *serial, X509_NAME *issuer)
Definition: x_crl.c:479
CRL_REASON_NONE
#define CRL_REASON_NONE
Definition: x509v3.h:234
default_crl_method
static const X509_CRL_METHOD * default_crl_method
Definition: x_crl.c:110
CRYPTO_STATIC_MUTEX_INIT
#define CRYPTO_STATIC_MUTEX_INIT
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:536
ASN1_EXP_SEQUENCE_OF_OPT
#define ASN1_EXP_SEQUENCE_OF_OPT(stname, field, type, tag)
Definition: asn1t.h:320
ASN1_OPT
#define ASN1_OPT(stname, field, type)
Definition: asn1t.h:268
GENERAL_NAME_st::type
int type
Definition: x509v3.h:184
regen-readme.it
it
Definition: regen-readme.py:15
absl::str_format_internal::LengthMod::j
@ j
GENERAL_NAME_st
Definition: x509v3.h:173
X509_CRL_METHOD_new
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_crl_st::base_crl_number
ASN1_INTEGER * base_crl_number
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:210
NID_crl_reason
#define NID_crl_reason
Definition: nid.h:722
GENERAL_NAME_st::directoryName
X509_NAME * directoryName
Definition: x509v3.h:191
CRL_REASON_REMOVE_FROM_CRL
#define CRL_REASON_REMOVE_FROM_CRL
Definition: x509v3.h:242
CRYPTO_STATIC_MUTEX_unlock_write
#define CRYPTO_STATIC_MUTEX_unlock_write
Definition: boringssl_prefix_symbols.h:1135
ASN1_SEQUENCE
ASN1_SEQUENCE(X509_REVOKED)
IDP_ONLYCA
#define IDP_ONLYCA
Definition: x509v3.h:351
X509_CRL_set_meth_data
void X509_CRL_set_meth_data(X509_CRL *crl, void *dat)
Definition: x_crl.c:557
OPENSSL_PUT_ERROR
#define OPENSSL_PUT_ERROR(library, reason)
Definition: err.h:423
internal.h
ext
void * ext
Definition: x509v3.h:87
NID_authority_key_identifier
#define NID_authority_key_identifier
Definition: nid.h:499
x509_crl_method_st::crl_verify
int(* crl_verify)(X509_CRL *crl, EVP_PKEY *pk)
Definition: x_crl.c:86
ISSUING_DIST_POINT_st::indirectCRL
int indirectCRL
Definition: x509v3.h:339
x509_crl_method_st
Definition: x_crl.c:80
IDP_ONLYUSER
#define IDP_ONLYUSER
Definition: x509v3.h:349
X509_CRL_verify
OPENSSL_EXPORT int X509_CRL_verify(X509_CRL *crl, EVP_PKEY *pkey)
x509_crl_method_st::crl_init
int(* crl_init)(X509_CRL *crl)
Definition: x_crl.c:82
x509_revoked_st
Definition: x509.h:252
x509v3.h
EXFLAG_FRESHEST
#define EXFLAG_FRESHEST
Definition: x509v3.h:402
X509_crl_st::idp_flags
int idp_flags
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:206
setup_idp
static int setup_idp(X509_CRL *crl, ISSUING_DIST_POINT *idp)
X509_CRL_INFO::sig_alg
X509_ALGOR * sig_alg
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:184
ASN1_SEQUENCE_ref
#define ASN1_SEQUENCE_ref(tname, cb)
Definition: asn1t.h:151
version
Definition: version.py:1
X509_crl_st::idp
ISSUING_DIST_POINT * idp
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:204
a
int a
Definition: abseil-cpp/absl/container/internal/hash_policy_traits_test.cc:88
x509_crl_method_st::crl_lookup
int(* crl_lookup)(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *ser, X509_NAME *issuer)
Definition: x_crl.c:84
X509_CRL_METHOD_DYNAMIC
#define X509_CRL_METHOD_DYNAMIC
Definition: x_crl.c:78
X509_extension_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:117
setup.k
k
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:42
X509_NAME_cmp
#define X509_NAME_cmp
Definition: boringssl_prefix_symbols.h:2376
IMPLEMENT_ASN1_FUNCTIONS
#define IMPLEMENT_ASN1_FUNCTIONS(stname)
Definition: asn1t.h:636
asn1_string_st::data
unsigned char * data
Definition: asn1.h:546
X509_CRL_METHOD_free
void X509_CRL_METHOD_free(X509_CRL_METHOD *m)
Definition: x_crl.c:550
ISSUING_DIST_POINT_st::onlysomereasons
ASN1_BIT_STRING * onlysomereasons
Definition: x509v3.h:338
X509_crl_st::flags
int flags
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:201
OPENSSL_malloc
#define OPENSSL_malloc
Definition: boringssl_prefix_symbols.h:1885
CRYPTO_STATIC_MUTEX
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:533
IDP_PRESENT
#define IDP_PRESENT
Definition: x509v3.h:345
OBJ_obj2nid
#define OBJ_obj2nid
Definition: boringssl_prefix_symbols.h:1857
x509_revoked_st::reason
int reason
Definition: x509.h:259
X509_ALGOR_cmp
OPENSSL_EXPORT int X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b)
ASN1_ITEM_st
Definition: asn1t.h:459
evp_pkey_st
Definition: evp.h:1046
xds_interop_client.int
int
Definition: xds_interop_client.py:113
NID_delta_crl
#define NID_delta_crl
Definition: nid.h:717
X509_get_issuer_name
#define X509_get_issuer_name
Definition: boringssl_prefix_symbols.h:2664
STACK_OF
#define STACK_OF(type)
Definition: stack.h:125
asn1_string_st::length
int length
Definition: asn1.h:544
NID_certificate_issuer
#define NID_certificate_issuer
Definition: nid.h:3410
AUTHORITY_KEYID_free
#define AUTHORITY_KEYID_free
Definition: boringssl_prefix_symbols.h:768
X509_CRL_INFO
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:182
ASN1_SEQUENCE_END_enc
#define ASN1_SEQUENCE_END_enc(stname, tname)
Definition: asn1t.h:159
X509_REVOKED_get_ext_d2i
#define X509_REVOKED_get_ext_d2i
Definition: boringssl_prefix_symbols.h:2476
X509_EXTENSION_get_object
#define X509_EXTENSION_get_object
Definition: boringssl_prefix_symbols.h:2339
NID_crl_number
#define NID_crl_number
Definition: nid.h:489
X509_crl_st::sha1_hash
unsigned char sha1_hash[SHA_DIGEST_LENGTH]
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:211
CRYPTO_STATIC_MUTEX_unlock_read
#define CRYPTO_STATIC_MUTEX_unlock_read
Definition: boringssl_prefix_symbols.h:1134
ASN1_STRING_cmp
#define ASN1_STRING_cmp
Definition: boringssl_prefix_symbols.h:676
X509_crl_st::meth
const X509_CRL_METHOD * meth
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:213
ISSUING_DIST_POINT_st::onlyCA
int onlyCA
Definition: x509v3.h:337
CRYPTO_STATIC_MUTEX_lock_write
#define CRYPTO_STATIC_MUTEX_lock_write
Definition: boringssl_prefix_symbols.h:1133
X509_crl_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:195
IDP_INDIRECT
#define IDP_INDIRECT
Definition: x509v3.h:355
err.h
asn1t.h
X509_R_DELTA_CRL_WITHOUT_CRL_NUMBER
#define X509_R_DELTA_CRL_WITHOUT_CRL_NUMBER
Definition: x509.h:2415
IMPLEMENT_ASN1_DUP_FUNCTION
#define IMPLEMENT_ASN1_DUP_FUNCTION(stname)
Definition: asn1t.h:696
ISSUING_DIST_POINT_st
Definition: x509v3.h:334
x
int x
Definition: bloaty/third_party/googletest/googlemock/test/gmock-matchers_test.cc:3610
X509_crl_st::akid
AUTHORITY_KEYID * akid
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:203
conf.extensions
list extensions
Definition: doc/python/sphinx/conf.py:54
ASN1_INTEGER_free
OPENSSL_EXPORT void ASN1_INTEGER_free(ASN1_INTEGER *str)
gen
OPENSSL_EXPORT GENERAL_NAME * gen
Definition: x509v3.h:495
X509_CRL_get_REVOKED
#define X509_CRL_get_REVOKED
Definition: boringssl_prefix_symbols.h:2301
EXFLAG_INVALID
#define EXFLAG_INVALID
Definition: x509v3.h:396
b
uint64_t b
Definition: abseil-cpp/absl/container/internal/layout_test.cc:53
X509_crl_st::sig_alg
X509_ALGOR * sig_alg
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:198
GENERAL_NAMES_free
#define GENERAL_NAMES_free
Definition: boringssl_prefix_symbols.h:1764
ASN1_item_verify
#define ASN1_item_verify
Definition: boringssl_prefix_symbols.h:755
ASN1_OP_NEW_POST
#define ASN1_OP_NEW_POST
Definition: asn1t.h:596
ASN1_SEQUENCE_enc
ASN1_SEQUENCE_enc(X509_CRL_INFO, enc, crl_inf_cb)
setup.idx
idx
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:197
X509_R_SIGNATURE_ALGORITHM_MISMATCH
#define X509_R_SIGNATURE_ALGORITHM_MISMATCH
Definition: x509.h:2414
inf
const char inf[]
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:12099
IDP_ONLYATTR
#define IDP_ONLYATTR
Definition: x509v3.h:353
IDP_INVALID
#define IDP_INVALID
Definition: x509v3.h:347
nid
int nid
Definition: cipher_extra.c:71
EXFLAG_CRITICAL
#define EXFLAG_CRITICAL
Definition: x509v3.h:398
X509_CRL_get0_by_serial
OPENSSL_EXPORT int X509_CRL_get0_by_serial(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *serial)
X509_crl_st::idp_reasons
int idp_reasons
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:207
ASN1_SEQUENCE_END
ASN1_SEQUENCE_END(X509_NAME_ENTRY)
Definition: x_name.c:103
int_crl_meth
static const X509_CRL_METHOD int_crl_meth
Definition: x_crl.c:103
IDP_REASONS
#define IDP_REASONS
Definition: x509v3.h:357
X509_algor_st
Definition: x509.h:113
CRLDP_ALL_REASONS
#define CRLDP_ALL_REASONS
Definition: x509v3.h:232
digest.h
x509_crl_method_st::flags
int flags
Definition: x_crl.c:81
x509_revoked_st::serialNumber
ASN1_INTEGER * serialNumber
Definition: x509.h:253
x509_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:139
GENERAL_NAME_st::d
union GENERAL_NAME_st::@370 d
ASN1_ENUMERATED_free
OPENSSL_EXPORT void ASN1_ENUMERATED_free(ASN1_ENUMERATED *str)
x509_crl_method_st::crl_free
int(* crl_free)(X509_CRL *crl)
Definition: x_crl.c:83
ASN1_ITEM_rptr
#define ASN1_ITEM_rptr(name)
Definition: asn1.h:302
ISSUING_DIST_POINT_free
#define ISSUING_DIST_POINT_free
Definition: boringssl_prefix_symbols.h:1803
X509_CRL_set_default_method
void X509_CRL_set_default_method(const X509_CRL_METHOD *meth)
Definition: x_crl.c:521
ASN1_OP_D2I_POST
#define ASN1_OP_D2I_POST
Definition: asn1t.h:600
ret
UniquePtr< SSL_SESSION > ret
Definition: ssl_x509.cc:1029
X509_REVOKED_cmp
static int X509_REVOKED_cmp(const X509_REVOKED **a, const X509_REVOKED **b)
fix_build_deps.r
r
Definition: fix_build_deps.py:491
X509_crl_st::crl_number
ASN1_INTEGER * crl_number
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:209
ASN1_VALUE
struct ASN1_VALUE_st ASN1_VALUE
Definition: asn1.h:320
EVP_sha1
const OPENSSL_EXPORT EVP_MD * EVP_sha1(void)
obj.h
ASN1_ENUMERATED_get
#define ASN1_ENUMERATED_get
Definition: boringssl_prefix_symbols.h:622
X509_get_serialNumber
#define X509_get_serialNumber
Definition: boringssl_prefix_symbols.h:2670
ISSUING_DIST_POINT_st::onlyattr
int onlyattr
Definition: x509v3.h:340
X509_CRL_get0_by_cert
OPENSSL_EXPORT int X509_CRL_get0_by_cert(X509_CRL *crl, X509_REVOKED **ret, X509 *x)
crl_inf_cb
static int crl_inf_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg)
Definition: x_crl.c:117
CRYPTO_STATIC_MUTEX_lock_read
#define CRYPTO_STATIC_MUTEX_lock_read
Definition: boringssl_prefix_symbols.h:1132
mem.h
NID_issuing_distribution_point
#define NID_issuing_distribution_point
Definition: nid.h:3405
DIST_POINT_set_dpname
#define DIST_POINT_set_dpname
Definition: boringssl_prefix_symbols.h:1257
ASN1_OP_FREE_POST
#define ASN1_OP_FREE_POST
Definition: asn1t.h:598
X509_CRL_digest
#define X509_CRL_digest
Definition: boringssl_prefix_symbols.h:2292
ISSUING_DIST_POINT_st::distpoint
DIST_POINT_NAME * distpoint
Definition: x509v3.h:335
X509_EXTENSION_get_critical
#define X509_EXTENSION_get_critical
Definition: boringssl_prefix_symbols.h:2337
ASN1_SEQUENCE_OF_OPT
#define ASN1_SEQUENCE_OF_OPT(stname, field, type)
Definition: asn1t.h:286
ASN1_INTEGER_cmp
#define ASN1_INTEGER_cmp
Definition: boringssl_prefix_symbols.h:642
regress.m
m
Definition: regress/regress.py:25
thread.h
ASN1_SEQUENCE_END_ref
#define ASN1_SEQUENCE_END_ref(stname, tname)
Definition: asn1t.h:163
OPENSSL_free
#define OPENSSL_free
Definition: boringssl_prefix_symbols.h:1869
GEN_DIRNAME
#define GEN_DIRNAME
Definition: x509v3.h:178
X509_CRL_get_meth_data
void * X509_CRL_get_meth_data(X509_CRL *crl)
Definition: x_crl.c:562
X509_CRL_get_issuer
#define X509_CRL_get_issuer
Definition: boringssl_prefix_symbols.h:2308
X509_CRL_get_ext_d2i
#define X509_CRL_get_ext_d2i
Definition: boringssl_prefix_symbols.h:2307
X509_name_st
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:95
ISSUING_DIST_POINT_st::onlyuser
int onlyuser
Definition: x509v3.h:336
X509_crl_st::meth_data
void * meth_data
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:214
X509_crl_st::crl
X509_CRL_INFO * crl
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:197
asn1_string_st
Definition: asn1.h:543
X509_CRL_add0_revoked
OPENSSL_EXPORT int X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev)
i
uint64_t i
Definition: abseil-cpp/absl/container/btree_benchmark.cc:230
asn1.h
ERR_R_MALLOC_FAILURE
#define ERR_R_MALLOC_FAILURE
Definition: err.h:371
stack.h
x509.h
X509_crl_st::signature
ASN1_BIT_STRING * signature
Definition: third_party/boringssl-with-bazel/src/crypto/x509/internal.h:199
ASN1_SIMPLE
#define ASN1_SIMPLE(stname, field, type)
Definition: asn1t.h:265


grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:56