=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/pkcs8.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/openssl/pkcs8.c 2015/08/19 18:25:31 1.5 --- src/usr.bin/openssl/pkcs8.c 2015/09/11 14:30:23 1.6 *************** *** 1,4 **** ! /* $OpenBSD: pkcs8.c,v 1.5 2015/08/19 18:25:31 deraadt Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999-2004. */ --- 1,4 ---- ! /* $OpenBSD: pkcs8.c,v 1.6 2015/09/11 14:30:23 bcook Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999-2004. */ *************** *** 69,77 **** static struct { const EVP_CIPHER *cipher; - #ifndef OPENSSL_NO_ENGINE - char *engine; - #endif char *infile; int informat; int iter; --- 69,74 ---- *************** *** 115,130 **** .value = PKCS8_EMBEDDED_PARAM, .opt.value = &pkcs8_config.p8_broken, }, - #ifndef OPENSSL_NO_ENGINE { - .name = "engine", - .argname = "id", - .desc = "Use the engine specified by the given identifier", - .type = OPTION_ARG, - .opt.arg = &pkcs8_config.engine, - }, - #endif - { .name = "in", .argname = "file", .desc = "Input file (default stdin)", --- 112,118 ---- *************** *** 220,226 **** static void pkcs8_usage() { ! fprintf(stderr, "usage: pkcs8 [-embed] [-engine id] [-in file] " "[-inform fmt] [-nocrypt]\n" " [-noiter] [-nooct] [-nsdb] [-out file] [-outform fmt] " "[-passin src]\n" --- 208,214 ---- static void pkcs8_usage() { ! fprintf(stderr, "usage: pkcs8 [-embed] [-in file] " "[-inform fmt] [-nocrypt]\n" " [-noiter] [-nooct] [-nsdb] [-out file] [-outform fmt] " "[-passin src]\n" *************** *** 231,237 **** int pkcs8_main(int argc, char **argv) { - ENGINE *e = NULL; BIO *in = NULL, *out = NULL; X509_SIG *p8 = NULL; PKCS8_PRIV_KEY_INFO *p8inf = NULL; --- 219,224 ---- *************** *** 252,261 **** return (1); } - #ifndef OPENSSL_NO_ENGINE - e = setup_engine(bio_err, pkcs8_config.engine, 0); - #endif - if (!app_passwd(bio_err, pkcs8_config.passargin, pkcs8_config.passargout, &passin, &passout)) { BIO_printf(bio_err, "Error getting passwords\n"); --- 239,244 ---- *************** *** 285,291 **** } if (pkcs8_config.topk8) { pkey = load_key(bio_err, pkcs8_config.infile, ! pkcs8_config.informat, 1, passin, e, "key"); if (!pkey) goto end; if (!(p8inf = EVP_PKEY2PKCS8_broken(pkey, --- 268,274 ---- } if (pkcs8_config.topk8) { pkey = load_key(bio_err, pkcs8_config.infile, ! pkcs8_config.informat, 1, passin, "key"); if (!pkey) goto end; if (!(p8inf = EVP_PKEY2PKCS8_broken(pkey,