mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 05:43:52 -07:00
fix for openssl 1.0.2
This commit is contained in:
parent
8671dbd31a
commit
ba0e6161d9
1 changed files with 4 additions and 1 deletions
|
@ -910,8 +910,11 @@ SSL_RKEY *ssl_cert_to_rkey(X509 * cert, uint32 * key_len) {
|
||||||
|
|
||||||
Kudos to Richard Levitte for the following (. intuitive .)
|
Kudos to Richard Levitte for the following (. intuitive .)
|
||||||
lines of code that resets the OID and let's us extract the key. */
|
lines of code that resets the OID and let's us extract the key. */
|
||||||
//nid = OBJ_obj2nid(cert->cert_info->key->algor->algorithm);
|
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||||
nid = X509_get_signature_nid(cert);
|
nid = X509_get_signature_nid(cert);
|
||||||
|
#else
|
||||||
|
nid = OBJ_obj2nid(cert->cert_info->key->algor->algorithm);
|
||||||
|
#endif
|
||||||
if ((nid == NID_md5WithRSAEncryption) || (nid == NID_shaWithRSAEncryption)) {
|
if ((nid == NID_md5WithRSAEncryption) || (nid == NID_shaWithRSAEncryption)) {
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||||
fprintf(stderr, "[ERROR] the current experimental openssl-1.1 support in hydra does not support RDP :( \n");
|
fprintf(stderr, "[ERROR] the current experimental openssl-1.1 support in hydra does not support RDP :( \n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue