diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-12-21 07:58:24 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-12-21 08:23:28 +0100 |
commit | e10dcc2acdc366d2e3841a2f171be5c20f9b9cfb (patch) | |
tree | af278a025a0c0f01bb05cf3da17a33ccc865de4a /src | |
parent | d6b44f21288f1e6085086e9ce11ba771660af252 (diff) | |
download | gnutls-e10dcc2acdc366d2e3841a2f171be5c20f9b9cfb.tar.gz |
GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION: deprecatedtmp-no-well-defined
This removes the documented use of this macro. It was non-functional.
Given the nature of the definition of the non-well defined date for
certificates, it may be wise not to use a special macro at all. The
reason is that the no-well defined date is a real date (~year 9999),
and any approximation with seconds will be unstable due to irregular
leap seconds.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pkcs11.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c index 66ef6b0fe0..fe865f3f71 100644 --- a/src/pkcs11.c +++ b/src/pkcs11.c @@ -314,10 +314,7 @@ pkcs11_list(FILE * outfile, const char *url, int type, unsigned int flags, } if (otype == GNUTLS_PKCS11_OBJ_X509_CRT && exp != -1) { - if (exp == GNUTLS_X509_NO_WELL_DEFINED_EXPIRATION) - fprintf(outfile, "\tExpires: Never\n"); - else - fprintf(outfile, "\tExpires: %s", ctime(&exp)); + fprintf(outfile, "\tExpires: %s", ctime(&exp)); } gnutls_free(output); |