mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Update sm2_key.c and delete useles var
to fix error
error: ../../common/gmssl/src/sm2_key.c: In function 'sm2_public_key_to_der':
../../common/gmssl/src/sm2_key.c:110:9: error: unused variable 'len' [-Werror=unused-variable]
size_t len = 0;
^~~
cc1: all warnings being treated as errors
This commit is contained in:
@@ -89,7 +89,6 @@ int sm2_key_print(FILE *fp, int fmt, int ind, const char *label, const SM2_KEY *
|
||||
int sm2_public_key_to_der(const SM2_KEY *key, uint8_t **out, size_t *outlen)
|
||||
{
|
||||
uint8_t octets[65];
|
||||
size_t len = 0;
|
||||
|
||||
if (!key) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user