mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-07 12:33:39 +08:00
x509_key all tests passed
This commit is contained in:
@@ -43,7 +43,7 @@ static int test_x509_request_info(void)
|
||||
X509_KEY pub_key;
|
||||
const uint8_t *attrs;
|
||||
|
||||
if (x509_key_generate(&x509_key, algor, algor_param) != 1) {
|
||||
if (x509_key_generate(&x509_key, algor, &algor_param, sizeof(algor_param)) != 1) {
|
||||
error_print();
|
||||
return -1;
|
||||
}
|
||||
@@ -152,7 +152,7 @@ static int test_x509_req(void)
|
||||
uint8_t *p = req;
|
||||
size_t reqlen = 0;
|
||||
|
||||
if (x509_key_generate(&x509_key, algor, algor_param) != 1) {
|
||||
if (x509_key_generate(&x509_key, algor, &algor_param, sizeof(algor_param)) != 1) {
|
||||
error_print();
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user