mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-08 23:13:38 +08:00
修改注释
This commit is contained in:
@@ -88,11 +88,11 @@ int X509_STORE_load_locations(X509_STORE *ctx, const char *file,
|
|||||||
X509_LOOKUP *lookup;
|
X509_LOOKUP *lookup;
|
||||||
|
|
||||||
//Support Go:
|
//Support Go:
|
||||||
//Go调用此函数无法传递NULL指针,只能传递空串。
|
//Go调用此函数传递空串时处理异常
|
||||||
if (file && *file == '\0')
|
if (file && *file == '\0')
|
||||||
file = NULL;
|
file = NULL;
|
||||||
if (path && *path == '\0')
|
if (path && *path == '\0')
|
||||||
path = NULL
|
path = NULL;
|
||||||
|
|
||||||
if (file != NULL) {
|
if (file != NULL) {
|
||||||
lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_file());
|
lookup = X509_STORE_add_lookup(ctx, X509_LOOKUP_file());
|
||||||
|
|||||||
Reference in New Issue
Block a user