version 1.10, 2020/11/03 18:39:18 |
version 1.11, 2020/11/03 18:42:52 |
|
|
#include <openssl/x509.h> |
#include <openssl/x509.h> |
#include <openssl/x509v3.h> |
#include <openssl/x509v3.h> |
|
|
static int cb(int ok, X509_STORE_CTX * ctx); |
static int cb(int ok, X509_STORE_CTX *ctx); |
static int check(X509_STORE * ctx, char *file, STACK_OF(X509) * uchain, |
static int check(X509_STORE *ctx, char *file, STACK_OF(X509) *uchain, |
STACK_OF(X509) * tchain, STACK_OF(X509_CRL) * crls); |
STACK_OF(X509) *tchain, STACK_OF(X509_CRL) *crls); |
static int vflags = 0; |
static int vflags = 0; |
|
|
static struct { |
static struct { |
|
|
} |
} |
|
|
static int |
static int |
cb(int ok, X509_STORE_CTX * ctx) |
cb(int ok, X509_STORE_CTX *ctx) |
{ |
{ |
int cert_error = X509_STORE_CTX_get_error(ctx); |
int cert_error = X509_STORE_CTX_get_error(ctx); |
X509 *current_cert = X509_STORE_CTX_get_current_cert(ctx); |
X509 *current_cert = X509_STORE_CTX_get_current_cert(ctx); |