]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/x509/t_crl.c
Add X509 version constants.
[thirdparty/openssl.git] / crypto / x509 / t_crl.c
index b9bffbb0c6d63c6ddcdb188d7208339b74c4fffb..48bcf5bb44e11ffbec6fe5b1e5152a6453ab9f33 100644 (file)
@@ -48,7 +48,7 @@ int X509_CRL_print_ex(BIO *out, X509_CRL *x, unsigned long nmflag)
 
     BIO_printf(out, "Certificate Revocation List (CRL):\n");
     l = X509_CRL_get_version(x);
-    if (l >= 0 && l <= 1)
+    if (l >= X509_CRL_VERSION_1 && l <= X509_CRL_VERSION_2)
         BIO_printf(out, "%8sVersion %ld (0x%lx)\n", "", l + 1, (unsigned long)l);
     else
         BIO_printf(out, "%8sVersion unknown (%ld)\n", "", l);