Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GmSSL-GmSSL-v2 的apps.c load_cert函数需要修改 #1777

Open
lyc666-beep opened this issue Dec 31, 2024 · 1 comment
Open

GmSSL-GmSSL-v2 的apps.c load_cert函数需要修改 #1777

lyc666-beep opened this issue Dec 31, 2024 · 1 comment

Comments

@lyc666-beep
Copy link

load_pkcs12 函数在读取cert pkey参数需要不为空,否则读取不出cert

@lyc666-beep
Copy link
Author

p12_kiss.c
if (pkey && *pkey && cert && !*cert) {
ERR_set_mark();
if (X509_check_private_key(x, *pkey)) {
*cert = x;
x = NULL;
}
ERR_pop_to_mark();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant