Skip to content

Commit

Permalink
Compatibility wth LibreSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
ndilieto committed Jul 28, 2022
1 parent 1863863 commit 63a70a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -2349,14 +2349,15 @@ char *csr_gen(char * const *names, bool status_req, privkey_t key)
warnx("csr_gen: -m, --must-staple is not supported by LibreSSL "
"- consider recompiling with OpenSSL");
goto out;
#endif
#else
ext = X509V3_EXT_conf_nid(NULL, NULL, NID_tlsfeature,
"status_request");
if (!ext) {
openssl_error("csr_gen");
goto out;
}
sk_X509_EXTENSION_push(exts, ext);
#endif
}
if (!X509_REQ_add_extensions(crq, exts)) {
openssl_error("csr_gen");
Expand Down

0 comments on commit 63a70a9

Please sign in to comment.