version 1.14, 2017/01/20 08:57:12 |
version 1.15, 2018/02/07 05:47:55 |
|
|
} |
} |
|
|
if (badops) { |
if (badops) { |
bad: |
bad: |
BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); |
BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); |
BIO_printf(bio_err, "where options are\n"); |
BIO_printf(bio_err, "where options are\n"); |
BIO_printf(bio_err, " -inform arg input format - DER or PEM\n"); |
BIO_printf(bio_err, " -inform arg input format - DER or PEM\n"); |
|
|
cipher = NULL; |
cipher = NULL; |
|
|
i = 0; |
i = 0; |
loop: |
loop: |
if (!PEM_write_bio_PrivateKey(out, pkey, cipher, |
if (!PEM_write_bio_PrivateKey(out, pkey, cipher, |
NULL, 0, NULL, passout)) { |
NULL, 0, NULL, passout)) { |
if ((ERR_GET_REASON(ERR_peek_error()) == |
if ((ERR_GET_REASON(ERR_peek_error()) == |
|
|
} |
} |
} |
} |
ex = 0; |
ex = 0; |
end: |
end: |
if (ex) { |
if (ex) { |
ERR_print_errors(bio_err); |
ERR_print_errors(bio_err); |
} |
} |
|
|
goto err; |
goto err; |
|
|
ret = 1; |
ret = 1; |
err: |
err: |
return (ret); |
return (ret); |
} |
} |
|
|
|
|
} |
} |
if (sk_CONF_VALUE_num(dn_sk)) { |
if (sk_CONF_VALUE_num(dn_sk)) { |
i = -1; |
i = -1; |
start: for (;;) { |
start: for (;;) { |
int ret; |
int ret; |
i++; |
i++; |
if (sk_CONF_VALUE_num(dn_sk) <= i) |
if (sk_CONF_VALUE_num(dn_sk) <= i) |
|
|
{ |
{ |
int i, ret = 0; |
int i, ret = 0; |
char buf[1024]; |
char buf[1024]; |
start: |
start: |
if (!batch) |
if (!batch) |
BIO_printf(bio_err, "%s [%s]:", text, def); |
BIO_printf(bio_err, "%s [%s]:", text, def); |
(void) BIO_flush(bio_err); |
(void) BIO_flush(bio_err); |
|
|
(unsigned char *) buf, -1, -1, mval)) |
(unsigned char *) buf, -1, -1, mval)) |
goto err; |
goto err; |
ret = 1; |
ret = 1; |
err: |
err: |
return (ret); |
return (ret); |
} |
} |
|
|
|
|
int i; |
int i; |
static char buf[1024]; |
static char buf[1024]; |
|
|
start: |
start: |
if (!batch) |
if (!batch) |
BIO_printf(bio_err, "%s [%s]:", text, def); |
BIO_printf(bio_err, "%s [%s]:", text, def); |
(void) BIO_flush(bio_err); |
(void) BIO_flush(bio_err); |
|
|
goto err; |
goto err; |
} |
} |
return (1); |
return (1); |
err: |
err: |
return (0); |
return (0); |
} |
} |
|
|