mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-04 00:23:45 +01:00
bbf: do not use deprecated openssl functions
This commit is contained in:
parent
562530a205
commit
a3afc20ea8
1 changed files with 2 additions and 2 deletions
|
|
@ -366,7 +366,7 @@ static int get_SecurityCertificate_NotBefore(char *refparam, struct dmctx *ctx,
|
|||
struct tm not_before_time;
|
||||
struct certificate_profile *cert_profile = (struct certificate_profile*)data;
|
||||
char not_before_str[DATE_LEN];
|
||||
ASN1_TIME *not_before = X509_get_notBefore(cert_profile->openssl_cert);
|
||||
const ASN1_TIME *not_before = X509_get0_notBefore(cert_profile->openssl_cert);
|
||||
ASN1_TIME_to_tm(not_before, ¬_before_time);
|
||||
strftime(not_before_str, sizeof(not_before_str), "%Y-%m-%dT%H:%M:%SZ", ¬_before_time);
|
||||
*value = dmstrdup(not_before_str);
|
||||
|
|
@ -384,7 +384,7 @@ static int get_SecurityCertificate_NotAfter(char *refparam, struct dmctx *ctx, v
|
|||
struct tm not_after_time;
|
||||
struct certificate_profile *cert_profile = (struct certificate_profile*)data;
|
||||
char not_after_str[DATE_LEN];
|
||||
ASN1_TIME *not_after = X509_get_notAfter(cert_profile->openssl_cert);
|
||||
const ASN1_TIME *not_after = X509_get0_notAfter(cert_profile->openssl_cert);
|
||||
ASN1_TIME_to_tm(not_after, ¬_after_time);
|
||||
strftime(not_after_str, sizeof(not_after_str), "%Y-%m-%dT%H:%M:%SZ", ¬_after_time);
|
||||
*value = dmstrdup(not_after_str);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue