MokManager: Update to new openssl API

X509_get_notBefore -> X509_getm_notBefore
X509_get_notAfter  -> X509_getm_notAfter

Signed-off-by: Gary Lin <glin@suse.com>
This commit is contained in:
Gary Lin 2017-04-07 15:57:09 +08:00 committed by Peter Jones
parent e883479f35
commit ae75df6232

View File

@ -379,14 +379,14 @@ static void show_x509_info (X509 *X509Cert, UINT8 *hash)
fields++;
}
time = X509_get_notBefore(X509Cert);
time = X509_getm_notBefore(X509Cert);
if (time) {
from = get_x509_time(time);
if (from)
fields++;
}
time = X509_get_notAfter(X509Cert);
time = X509_getm_notAfter(X509Cert);
if (time) {
until = get_x509_time(time);
if (until)