Change functions to ANSI C.
[openssl.git] / crypto / x509 / x509_txt.c
index 408d1c277c5e83b95a86c300605aec7845dd2779..06f284b0a68d3b9f6ac8d659de61be273d48e567 100644 (file)
 #include "asn1.h"
 #include "x509.h"
 #include "objects.h"
-#include "pem.h"
 
-char *X509_verify_cert_error_string(n)
-long n;
+const char *X509_verify_cert_error_string(long n)
        {
        static char buf[100];
 
@@ -121,6 +119,8 @@ long n;
                return("unable to verify the first certificate");
        case X509_V_ERR_CERT_CHAIN_TOO_LONG:
                return("certificate chain too long");
+       case X509_V_ERR_CERT_REVOKED:
+               return("certificate revoked");
        case X509_V_ERR_APPLICATION_VERIFICATION:
                return("application verification failure");
        default: