#include <stdio.h>
#include <string.h>
#include <openssl/err.h>
#include <openssl/digest.h>
#include <openssl/mem.h>
#include <openssl/obj.h>
#include <openssl/thread.h>
#include <openssl/x509v3.h>
#include "../internal.h"
#include "../x509/internal.h"
#include "internal.h"
Go to the source code of this file.
|
static int | check_ca (const X509 *x) |
|
static int | check_purpose_crl_sign (const X509_PURPOSE *xp, const X509 *x, int ca) |
|
static int | check_purpose_ns_ssl_server (const X509_PURPOSE *xp, const X509 *x, int ca) |
|
static int | check_purpose_smime_encrypt (const X509_PURPOSE *xp, const X509 *x, int ca) |
|
static int | check_purpose_smime_sign (const X509_PURPOSE *xp, const X509 *x, int ca) |
|
static int | check_purpose_ssl_client (const X509_PURPOSE *xp, const X509 *x, int ca) |
|
static int | check_purpose_ssl_server (const X509_PURPOSE *xp, const X509 *x, int ca) |
|
static int | check_purpose_timestamp_sign (const X509_PURPOSE *xp, const X509 *x, int ca) |
|
static int | nid_cmp (const void *void_a, const void *void_b) |
|
static int | no_check (const X509_PURPOSE *xp, const X509 *x, int ca) |
|
static int | ocsp_helper (const X509_PURPOSE *xp, const X509 *x, int ca) |
|
static int | purpose_smime (const X509 *x, int ca) |
|
static int | setup_crldp (X509 *x) |
|
static int | setup_dp (X509 *x, DIST_POINT *dp) |
|
static | STACK_OF (X509_PURPOSE) |
|
int | X509_check_akid (X509 *issuer, AUTHORITY_KEYID *akid) |
|
int | X509_check_ca (X509 *x) |
|
int | X509_check_issued (X509 *issuer, X509 *subject) |
|
int | X509_check_purpose (X509 *x, int id, int ca) |
|
const GENERAL_NAMES * | X509_get0_authority_issuer (X509 *x509) |
|
const ASN1_OCTET_STRING * | X509_get0_authority_key_id (X509 *x509) |
|
const ASN1_INTEGER * | X509_get0_authority_serial (X509 *x509) |
|
const ASN1_OCTET_STRING * | X509_get0_subject_key_id (X509 *x509) |
|
uint32_t | X509_get_extended_key_usage (X509 *x) |
|
uint32_t | X509_get_extension_flags (X509 *x) |
|
uint32_t | X509_get_key_usage (X509 *x) |
|
long | X509_get_pathlen (X509 *x509) |
|
int | X509_PURPOSE_add (int id, int trust, int flags, int(*ck)(const X509_PURPOSE *, const X509 *, int), char *name, char *sname, void *arg) |
|
void | X509_PURPOSE_cleanup (void) |
|
X509_PURPOSE * | X509_PURPOSE_get0 (int idx) |
|
char * | X509_PURPOSE_get0_name (const X509_PURPOSE *xp) |
|
char * | X509_PURPOSE_get0_sname (const X509_PURPOSE *xp) |
|
int | X509_PURPOSE_get_by_id (int purpose) |
|
int | X509_PURPOSE_get_by_sname (char *sname) |
|
int | X509_PURPOSE_get_count (void) |
|
int | X509_PURPOSE_get_id (const X509_PURPOSE *xp) |
|
int | X509_PURPOSE_get_trust (const X509_PURPOSE *xp) |
|
int | X509_PURPOSE_set (int *p, int purpose) |
|
int | X509_supported_extension (X509_EXTENSION *ex) |
|
int | x509v3_cache_extensions (X509 *x) |
|
static int | xp_cmp (const X509_PURPOSE **a, const X509_PURPOSE **b) |
|
static void | xptable_free (X509_PURPOSE *p) |
|
◆ ku_reject
◆ KU_TLS
◆ ns_reject
◆ V1_ROOT
◆ X509_PURPOSE_COUNT
◆ xku_reject
◆ check_ca()
◆ check_purpose_crl_sign()
◆ check_purpose_ns_ssl_server()
◆ check_purpose_smime_encrypt()
◆ check_purpose_smime_sign()
◆ check_purpose_ssl_client()
◆ check_purpose_ssl_server()
◆ check_purpose_timestamp_sign()
◆ nid_cmp()
◆ no_check()
◆ ocsp_helper()
◆ purpose_smime()
◆ setup_crldp()
◆ setup_dp()
◆ STACK_OF()
◆ X509_check_akid()
◆ X509_check_ca()
◆ X509_check_issued()
int X509_check_issued |
( |
X509 * |
issuer, |
|
|
X509 * |
subject |
|
) |
| |
◆ X509_check_purpose()
◆ X509_get0_authority_issuer()
const GENERAL_NAMES* X509_get0_authority_issuer |
( |
X509 * |
x509 | ) |
|
◆ X509_get0_authority_key_id()
◆ X509_get0_authority_serial()
◆ X509_get0_subject_key_id()
◆ X509_get_extended_key_usage()
◆ X509_get_extension_flags()
◆ X509_get_key_usage()
◆ X509_get_pathlen()
◆ X509_PURPOSE_add()
◆ X509_PURPOSE_cleanup()
void X509_PURPOSE_cleanup |
( |
void |
| ) |
|
◆ X509_PURPOSE_get0()
◆ X509_PURPOSE_get0_name()
◆ X509_PURPOSE_get0_sname()
◆ X509_PURPOSE_get_by_id()
int X509_PURPOSE_get_by_id |
( |
int |
purpose | ) |
|
◆ X509_PURPOSE_get_by_sname()
int X509_PURPOSE_get_by_sname |
( |
char * |
sname | ) |
|
◆ X509_PURPOSE_get_count()
int X509_PURPOSE_get_count |
( |
void |
| ) |
|
◆ X509_PURPOSE_get_id()
◆ X509_PURPOSE_get_trust()
◆ X509_PURPOSE_set()
int X509_PURPOSE_set |
( |
int * |
p, |
|
|
int |
purpose |
|
) |
| |
◆ X509_supported_extension()
◆ x509v3_cache_extensions()
int x509v3_cache_extensions |
( |
X509 * |
x | ) |
|
◆ xp_cmp()
◆ xptable_free()
◆ xstandard
Initial value:= {
NULL},
NULL},
(char *)"nssslserver", NULL},
(char *)"S/MIME signing", (char *)"smimesign", NULL},
(char *)"smimeencrypt", NULL},
(char *)"CRL signing", (char *)"crlsign", NULL},
(char *)"any", NULL},
(char *)"OCSP helper", (char *)"ocsphelper", NULL},
(char *)"timestampsign", NULL},
}
Definition at line 102 of file v3_purp.c.
#define X509_PURPOSE_SSL_CLIENT
static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x, int ca)
#define X509_TRUST_SSL_SERVER
#define X509_PURPOSE_SMIME_SIGN
#define X509_TRUST_DEFAULT
static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x, int ca)
static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x, int ca)
static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x, int ca)
#define X509_PURPOSE_NS_SSL_SERVER
#define X509_PURPOSE_SSL_SERVER
static int no_check(const X509_PURPOSE *xp, const X509 *x, int ca)
static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca)
static int ocsp_helper(const X509_PURPOSE *xp, const X509 *x, int ca)
#define X509_PURPOSE_OCSP_HELPER
#define X509_PURPOSE_CRL_SIGN
static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca)
static int check_purpose_timestamp_sign(const X509_PURPOSE *xp, const X509 *x, int ca)
#define X509_PURPOSE_TIMESTAMP_SIGN
#define X509_PURPOSE_SMIME_ENCRYPT
#define X509_TRUST_COMPAT
#define X509_TRUST_SSL_CLIENT
grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:37