mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Update Public API
This commit is contained in:
@@ -118,10 +118,14 @@ bad:
|
||||
argv++;
|
||||
}
|
||||
|
||||
if (!mpkfile || !id) {
|
||||
if (!mpkfp || !id) {
|
||||
error_print();
|
||||
goto end;
|
||||
}
|
||||
if (sm9_enc_master_public_key_from_pem(&mpk, mpkfp) != 1) {
|
||||
error_print();
|
||||
return -1;
|
||||
}
|
||||
if ((inlen = fread(inbuf, 1, sizeof(inbuf), infp)) <= 0) {
|
||||
error_print();
|
||||
goto end;
|
||||
@@ -138,5 +142,6 @@ bad:
|
||||
end:
|
||||
if (infile && infp) fclose(infp);
|
||||
if (outfile && outfp) fclose(outfp);
|
||||
if (mpkfp) fclose(mpkfp);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user