Crypt-LibSCEP

 view release on metacpan or  search on metacpan

LibSCEP.xs  view on Meta::CPAN

            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;

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.596 second using v1.00-cache-2.02-grep-82fe00e-cpan-2cc899e4a130 )