summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2019-09-19 20:20:56 +0800
committerfengweihao <[email protected]>2019-09-19 20:20:56 +0800
commitdbb16ae0c3d44ff19de5836914d01eb31dc8168b (patch)
tree345429ff5d595c3f9594a9aa1a1e968d0044d4e9
parente157d0d3dbff55d75e104f6522b4849cc1616d92 (diff)
关闭循环读取不同格式证书功能
-rw-r--r--src/x509.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/x509.c b/src/x509.c
index e40ad77..3f25559 100644
--- a/src/x509.c
+++ b/src/x509.c
@@ -189,6 +189,7 @@ cert_load_x509(char *file, int *informat, STACK_OF(X509) **stack_ca)
*informat = LOCAL_USER_PEN;
goto end;
}
+#if 0
(void)BIO_reset (in);
if ((x509 = cert_base_load_x509(in, stack_ca, LOCAL_USER_P12)) != NULL){
*informat = LOCAL_USER_P12;
@@ -199,6 +200,7 @@ cert_load_x509(char *file, int *informat, STACK_OF(X509) **stack_ca)
*informat = LOCAL_USER_DER;
goto end;
}
+#endif
end:
BIO_free (in);
in = NULL;