projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo in CONTRIBUTING.md
[openssl.git]
/
apps
/
genrsa.c
diff --git
a/apps/genrsa.c
b/apps/genrsa.c
index 2f8960f959df900fa40dabb7922214f9fe4e0e0c..54d025e24c2cd7b3d89916e4244b94f54fe562ce 100644
(file)
--- a/
apps/genrsa.c
+++ b/
apps/genrsa.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 1995-202
2
The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-202
3
The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@
-179,7
+179,8
@@
opthelp:
if (out == NULL)
goto end;
if (out == NULL)
goto end;
- if (!init_gen_str(&ctx, "RSA", eng, 0, NULL, NULL))
+ if (!init_gen_str(&ctx, "RSA", eng, 0, app_get0_libctx(),
+ app_get0_propq()))
goto end;
if (verbose)
goto end;
if (verbose)
@@
-203,6
+204,8
@@
opthelp:
goto end;
}
pkey = app_keygen(ctx, "RSA", num, verbose);
goto end;
}
pkey = app_keygen(ctx, "RSA", num, verbose);
+ if (pkey == NULL)
+ goto end;
if (verbose) {
BIGNUM *e = NULL;
if (verbose) {
BIGNUM *e = NULL;