Debian Codegraph @

crt/s2n/tests/features/S2N_LIBCRYPTO_SUPPORTS_CUSTOM_OID.c

raw symbols SCIP
1 /*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15
16 #include <openssl/x509.h>
17
18 static int verify_custom_crit_oids_cb(X509_STORE_CTX *ctx, X509 *x509, STACK_OF(ASN1_OBJECT) *oids) {
19 return 1;
20 }
21
22 int main()
23 {
24 ASN1_OBJECT *critical_oid = NULL;
25 X509_STORE_CTX *store_ctx = NULL;
26
27 X509_STORE_CTX_add_custom_crit_oid(store_ctx, critical_oid);
28 X509_STORE_CTX_set_verify_crit_oids(store_ctx, verify_custom_crit_oids_cb);
29
30 return 0;
31 }