mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 05:43:52 -07:00
maybe fix for openssl 1.1
This commit is contained in:
parent
ba0e6161d9
commit
6d84a00216
1 changed files with 5 additions and 2 deletions
|
@ -917,8 +917,11 @@ SSL_RKEY *ssl_cert_to_rkey(X509 * cert, uint32 * key_len) {
|
|||
#endif
|
||||
if ((nid == NID_md5WithRSAEncryption) || (nid == NID_shaWithRSAEncryption)) {
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
fprintf(stderr, "[ERROR] the current experimental openssl-1.1 support in hydra does not support RDP :( \n");
|
||||
hydra_child_exit(2);
|
||||
// fprintf(stderr, "[ERROR] the current experimental openssl-1.1 support in hydra does not support RDP :( \n");
|
||||
// hydra_child_exit(2);
|
||||
DEBUG_RDP5(("Re-setting algorithm type to RSA in server certificate\n"));
|
||||
ASN1_OBJECT_free(X509_get_X509_PUBKEY(xs)->algor->algorithm);
|
||||
X509_get_X509_PUBKEY(xs)->algor->algorithm = OBJ_nid2obj(NID_rsaEncryption);
|
||||
#else
|
||||
DEBUG_RDP5(("Re-setting algorithm type to RSA in server certificate\n"));
|
||||
ASN1_OBJECT_free(cert->cert_info->key->algor->algorithm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue