mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-09 23:43:41 +08:00
update saf
This commit is contained in:
@@ -112,16 +112,7 @@ int saf_get_ec_public_key_from_cert(
|
||||
|
||||
static int readfile(const char *file, unsigned char **pout, size_t *len)
|
||||
{
|
||||
FILE *fp = fopen(file, "rb");
|
||||
fseek(fp, 0, SEEK_END);
|
||||
long fsize = ftell(fp);
|
||||
fseek(fp, 0, SEEK_SET);
|
||||
char *out = malloc(fsize);
|
||||
fread(out, fsize, 1, f);
|
||||
fclose(f);
|
||||
*pout = out;
|
||||
*len = fsize;
|
||||
return SAR_OK;
|
||||
return SAR_Ok;
|
||||
}
|
||||
|
||||
static int cert_get_pubkey(
|
||||
|
||||
Reference in New Issue
Block a user