v3_ocsp.c
Go to the documentation of this file.
1 /*
2  * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License"). You may not use
5  * this file except in compliance with the License. You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 
10 #include <openssl/x509v3.h>
11 
12 #include <openssl/asn1.h>
13 #include <openssl/bio.h>
14 #include <openssl/nid.h>
15 
16 /*
17  * OCSP extensions and a couple of CRL entry extensions
18  */
19 
20 static int i2r_ocsp_acutoff(const X509V3_EXT_METHOD *method, void *nonce,
21  BIO *out, int indent);
22 
23 static int i2r_ocsp_nocheck(const X509V3_EXT_METHOD *method,
24  void *nocheck, BIO *out, int indent);
25 static void *s2i_ocsp_nocheck(const X509V3_EXT_METHOD *method,
26  X509V3_CTX *ctx, const char *str);
27 
30  0, 0, 0, 0,
31  0, 0,
32  0, 0,
34  NULL
35 };
36 
39  0, 0, 0, 0,
41  0, 0,
43  NULL
44 };
45 
46 static int i2r_ocsp_acutoff(const X509V3_EXT_METHOD *method, void *cutoff,
47  BIO *bp, int ind)
48 {
49  if (BIO_printf(bp, "%*s", ind, "") <= 0)
50  return 0;
51  if (!ASN1_GENERALIZEDTIME_print(bp, cutoff))
52  return 0;
53  return 1;
54 }
55 
56 /* Nocheck is just a single NULL. Don't print anything and always set it */
57 
58 static int i2r_ocsp_nocheck(const X509V3_EXT_METHOD *method, void *nocheck,
59  BIO *out, int indent)
60 {
61  return 1;
62 }
63 
65  X509V3_CTX *ctx, const char *str)
66 {
67  return ASN1_NULL_new();
68 }
xds_interop_client.str
str
Definition: xds_interop_client.py:487
gen_build_yaml.out
dictionary out
Definition: src/benchmark/gen_build_yaml.py:24
ctx
Definition: benchmark-async.c:30
i2r_ocsp_nocheck
static int i2r_ocsp_nocheck(const X509V3_EXT_METHOD *method, void *nocheck, BIO *out, int indent)
Definition: v3_ocsp.c:58
v3_ext_ctx
Definition: x509v3.h:136
bio_st
Definition: bio.h:822
v3_crl_invdate
const X509V3_EXT_METHOD v3_crl_invdate
Definition: v3_ocsp.c:28
v3_ocsp_nocheck
const X509V3_EXT_METHOD v3_ocsp_nocheck
Definition: v3_ocsp.c:37
bio.h
ind
Definition: bloaty/third_party/zlib/examples/gun.c:81
x509v3.h
NID_invalidity_date
#define NID_invalidity_date
Definition: nid.h:727
ASN1_ITEM_ref
#define ASN1_ITEM_ref(name)
Definition: asn1.h:312
python_utils.upload_rbe_results.indent
indent
Definition: upload_rbe_results.py:183
ASN1_NULL_new
OPENSSL_EXPORT ASN1_NULL * ASN1_NULL_new(void)
BIO_printf
#define BIO_printf
Definition: boringssl_prefix_symbols.h:827
nid.h
v3_ext_method
Definition: x509v3.h:102
NID_id_pkix_OCSP_noCheck
#define NID_id_pkix_OCSP_noCheck
Definition: nid.h:1711
s2i_ocsp_nocheck
static void * s2i_ocsp_nocheck(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *str)
Definition: v3_ocsp.c:64
method
NSString * method
Definition: ProtoMethod.h:28
ASN1_GENERALIZEDTIME_print
#define ASN1_GENERALIZEDTIME_print
Definition: boringssl_prefix_symbols.h:633
i2r_ocsp_acutoff
static int i2r_ocsp_acutoff(const X509V3_EXT_METHOD *method, void *nonce, BIO *out, int indent)
Definition: v3_ocsp.c:46
asn1_string_st
Definition: asn1.h:543
asn1.h
ASN1_NULL
struct asn1_null_st ASN1_NULL
Definition: base.h:333


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