Check for errors allocating the error strings.
[openssl.git] / crypto / ocsp / ocsp_err.c
index 59bcf85cd08749eec3a9e67e5aa11b4d97a3fe41..a2d96e9c9f5b4f2939f2a3dda87397a2cd167519 100644 (file)
@@ -78,7 +78,7 @@ static ERR_STRING_DATA OCSP_str_reasons[] = {
 
 #endif
 
-void ERR_load_OCSP_strings(void)
+int ERR_load_OCSP_strings(void)
 {
 #ifndef OPENSSL_NO_ERR
 
@@ -87,4 +87,5 @@ void ERR_load_OCSP_strings(void)
         ERR_load_strings(0, OCSP_str_reasons);
     }
 #endif
+    return 1;
 }