ssl_cert.c (openssl-1.1.1o) | : | ssl_cert.c (openssl-1.1.1p) | ||
---|---|---|---|---|
skipping to change at line 879 | skipping to change at line 879 | |||
pstore = &c->chain_store; | pstore = &c->chain_store; | |||
else | else | |||
pstore = &c->verify_store; | pstore = &c->verify_store; | |||
X509_STORE_free(*pstore); | X509_STORE_free(*pstore); | |||
*pstore = store; | *pstore = store; | |||
if (ref && store) | if (ref && store) | |||
X509_STORE_up_ref(store); | X509_STORE_up_ref(store); | |||
return 1; | return 1; | |||
} | } | |||
int ssl_cert_get_cert_store(CERT *c, X509_STORE **pstore, int chain) | ||||
{ | ||||
*pstore = (chain ? c->chain_store : c->verify_store); | ||||
return 1; | ||||
} | ||||
int ssl_get_security_level_bits(const SSL *s, const SSL_CTX *ctx, int *levelp) | int ssl_get_security_level_bits(const SSL *s, const SSL_CTX *ctx, int *levelp) | |||
{ | { | |||
int level; | int level; | |||
static const int minbits_table[5 + 1] = { 0, 80, 112, 128, 192, 256 }; | static const int minbits_table[5 + 1] = { 0, 80, 112, 128, 192, 256 }; | |||
if (ctx != NULL) | if (ctx != NULL) | |||
level = SSL_CTX_get_security_level(ctx); | level = SSL_CTX_get_security_level(ctx); | |||
else | else | |||
level = SSL_get_security_level(s); | level = SSL_get_security_level(s); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 6 lines changed or added |