version 1.16, 2021/10/31 16:47:27 |
version 1.17, 2022/03/28 10:56:26 |
|
|
const char *name); |
const char *name); |
void hex_prin(BIO *out, unsigned char *buf, int len); |
void hex_prin(BIO *out, unsigned char *buf, int len); |
int alg_print(BIO *x, const X509_ALGOR *alg); |
int alg_print(BIO *x, const X509_ALGOR *alg); |
int cert_load(BIO *in, STACK_OF(X509) *sk); |
|
static int set_pbe(BIO *err, int *ppbe, const char *str); |
static int set_pbe(BIO *err, int *ppbe, const char *str); |
|
|
static struct { |
static struct { |
|
|
ASN1_INTEGER_get(pbe->iter)); |
ASN1_INTEGER_get(pbe->iter)); |
PBEPARAM_free(pbe); |
PBEPARAM_free(pbe); |
return 1; |
return 1; |
} |
|
|
|
/* Load all certificates from a given file */ |
|
|
|
int |
|
cert_load(BIO *in, STACK_OF(X509) *sk) |
|
{ |
|
int ret; |
|
X509 *cert; |
|
ret = 0; |
|
while ((cert = PEM_read_bio_X509(in, NULL, NULL, NULL))) { |
|
ret = 1; |
|
sk_X509_push(sk, cert); |
|
} |
|
if (ret) |
|
ERR_clear_error(); |
|
return ret; |
|
} |
} |
|
|
/* Generalised attribute print: handle PKCS#8 and bag attributes */ |
/* Generalised attribute print: handle PKCS#8 and bag attributes */ |