Crypt-LibSCEP
view release on metacpan or search on metacpan
goto err;
}
if(!(key = PEM_read_bio_PrivateKey(b, NULL, 0, pwd))) {
scep_log(config->handle, ERROR, "Reading private key failed");
goto err;
}
BIO_free(b);
}
else {
//we got an engine
if(!(key = ENGINE_load_private_key(config->handle->configuration->engine, key_str, NULL, NULL))) {
scep_log(config->handle, ERROR, "Loading private key from engine failed");
create_err_msg(config, NULL);
}
}
return key;
err:
BIO_free(b);
EVP_PKEY_free(key);
create_err_msg(config, NULL);
return NULL;
( run in 0.467 second using v1.01-cache-2.11-cpan-4d50c553e7e )