version 1.2, 2015/07/20 17:10:45 |
version 1.3, 2015/07/20 18:23:52 |
|
|
|
|
if (sigfile && sigkey) { |
if (sigfile && sigkey) { |
BIO *sigbio; |
BIO *sigbio; |
sigbio = BIO_new_file(sigfile, "rb"); |
|
siglen = EVP_PKEY_size(sigkey); |
siglen = EVP_PKEY_size(sigkey); |
sigbuf = malloc(siglen); |
sigbuf = malloc(siglen); |
|
if (sigbuf == NULL) { |
|
BIO_printf(bio_err, "out of memory\n"); |
|
ERR_print_errors(bio_err); |
|
goto end; |
|
} |
|
sigbio = BIO_new_file(sigfile, "rb"); |
if (!sigbio) { |
if (!sigbio) { |
BIO_printf(bio_err, "Error opening signature file %s\n", |
BIO_printf(bio_err, "Error opening signature file %s\n", |
sigfile); |
sigfile); |