diff --git plugins/qca-ossl/qca-ossl.cpp plugins/qca-ossl/qca-ossl.cpp
index 783a20d..b218992 100644
|
|
public: |
1930 | 1930 | md = EVP_sha1(); |
1931 | 1931 | else if(alg == EMSA3_MD5) |
1932 | 1932 | md = EVP_md5(); |
1933 | | #ifdef HAVE_OPENSSL_MD2 |
| 1933 | #if defined(HAVE_OPENSSL_MD2) && !defined(OPENSSL_NO_MD2) |
1934 | 1934 | else if(alg == EMSA3_MD2) |
1935 | 1935 | md = EVP_md2(); |
1936 | 1936 | #endif |
… |
… |
public: |
1958 | 1958 | md = EVP_sha1(); |
1959 | 1959 | else if(alg == EMSA3_MD5) |
1960 | 1960 | md = EVP_md5(); |
1961 | | #ifdef HAVE_OPENSSL_MD2 |
| 1961 | #if defined(HAVE_OPENSSL_MD2) && !defined(OPENSSL_NO_MD2) |
1962 | 1962 | else if(alg == EMSA3_MD2) |
1963 | 1963 | md = EVP_md2(); |
1964 | 1964 | #endif |
… |
… |
public: |
3606 | 3606 | case NID_md5WithRSAEncryption: |
3607 | 3607 | p.sigalgo = QCA::EMSA3_MD5; |
3608 | 3608 | break; |
3609 | | #ifdef HAVE_OPENSSL_MD2 |
| 3609 | #if defined(HAVE_OPENSSL_MD2) && !defined(OPENSSL_NO_MD2) |
3610 | 3610 | case NID_md2WithRSAEncryption: |
3611 | 3611 | p.sigalgo = QCA::EMSA3_MD2; |
3612 | 3612 | break; |
… |
… |
public: |
4106 | 4106 | case NID_md5WithRSAEncryption: |
4107 | 4107 | p.sigalgo = QCA::EMSA3_MD5; |
4108 | 4108 | break; |
4109 | | #ifdef HAVE_OPENSSL_MD2 |
| 4109 | #if defined(HAVE_OPENSSL_MD2) && !defined(OPENSSL_NO_MD2) |
4110 | 4110 | case NID_md2WithRSAEncryption: |
4111 | 4111 | p.sigalgo = QCA::EMSA3_MD2; |
4112 | 4112 | break; |
… |
… |
public: |
4298 | 4298 | case NID_md5WithRSAEncryption: |
4299 | 4299 | p.sigalgo = QCA::EMSA3_MD5; |
4300 | 4300 | break; |
4301 | | #ifdef HAVE_OPENSSL_MD2 |
| 4301 | #if defined(HAVE_OPENSSL_MD2) && !defined(OPENSSL_NO_MD2) |
4302 | 4302 | case NID_md2WithRSAEncryption: |
4303 | 4303 | p.sigalgo = QCA::EMSA3_MD2; |
4304 | 4304 | break; |
… |
… |
static QStringList all_hash_types() |
6878 | 6878 | list += "sha1"; |
6879 | 6879 | list += "sha0"; |
6880 | 6880 | list += "ripemd160"; |
6881 | | #ifdef HAVE_OPENSSL_MD2 |
| 6881 | #if defined(HAVE_OPENSSL_MD2) && !defined(OPENSSL_NO_MD2) |
6882 | 6882 | list += "md2"; |
6883 | 6883 | #endif |
6884 | 6884 | list += "md4"; |
… |
… |
public: |
7098 | 7098 | list += all_hash_types(); |
7099 | 7099 | list += all_mac_types(); |
7100 | 7100 | list += all_cipher_types(); |
7101 | | #ifdef HAVE_OPENSSL_MD2 |
| 7101 | #if defined(HAVE_OPENSSL_MD2) && !defined(OPENSSL_NO_MD2) |
7102 | 7102 | list += "pbkdf1(md2)"; |
7103 | 7103 | #endif |
7104 | 7104 | list += "pbkdf1(sha1)"; |
… |
… |
public: |
7133 | 7133 | return new opensslHashContext( EVP_sha(), this, type); |
7134 | 7134 | else if ( type == "ripemd160" ) |
7135 | 7135 | return new opensslHashContext( EVP_ripemd160(), this, type); |
7136 | | #ifdef HAVE_OPENSSL_MD2 |
| 7136 | #if defined(HAVE_OPENSSL_MD2) && !defined(OPENSSL_NO_MD2) |
7137 | 7137 | else if ( type == "md2" ) |
7138 | 7138 | return new opensslHashContext( EVP_md2(), this, type); |
7139 | 7139 | #endif |
… |
… |
public: |
7165 | 7165 | */ |
7166 | 7166 | else if ( type == "pbkdf1(sha1)" ) |
7167 | 7167 | return new opensslPbkdf1Context( EVP_sha1(), this, type ); |
7168 | | #ifdef HAVE_OPENSSL_MD2 |
| 7168 | #if defined(HAVE_OPENSSL_MD2) && !defined(OPENSSL_NO_MD2) |
7169 | 7169 | else if ( type == "pbkdf1(md2)" ) |
7170 | 7170 | return new opensslPbkdf1Context( EVP_md2(), this, type ); |
7171 | 7171 | #endif |