aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_pkey_dsa.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-01-10 13:45:36 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-01-10 13:45:36 +0000
commitdc8f3147493a2ba249fea7557b1e0a371d7e2b0f (patch)
tree5997dfd7ba8277b36c4a9c1fc83a2241d9a25634 /ossl_pkey_dsa.c
parentc8c2b576e89e238a6aead38b3cc40a2d3f07f751 (diff)
downloadruby-openssl-history-dc8f3147493a2ba249fea7557b1e0a371d7e2b0f.tar.gz
* added OpenSSL-SNAPSHOT style NO_* (OPENSSL_NO_*)
* added AES cipher when compiled under OpenSSL-SNAPSHOT * added warnings if the OpenSSL is compiled without some feature * handle NO_RSA, NO_DSA in openssl.rb * incremented version in ossl_version.h
Diffstat (limited to 'ossl_pkey_dsa.c')
-rw-r--r--ossl_pkey_dsa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ossl_pkey_dsa.c b/ossl_pkey_dsa.c
index 484bf01..07448c5 100644
--- a/ossl_pkey_dsa.c
+++ b/ossl_pkey_dsa.c
@@ -8,7 +8,7 @@
* This program is licenced under the same licence as Ruby.
* (See the file 'LICENCE'.)
*/
-#ifndef NO_DSA
+#if !defined(NO_DSA) && !defined(OPENSSL_NO_DSA)
#include "ossl.h"
#include "ossl_pkey.h"
@@ -444,11 +444,12 @@ Init_ossl_dsa(VALUE mPKey, VALUE cPKey, VALUE ePKeyError)
}
#else /* defined NO_DSA */
+# warning >>> OpenSSL is compiled without DSA support <<<
void
Init_ossl_dsa(VALUE mPKey, VALUE cPKey, VALUE ePKeyError)
{
- rb_warning("DSA keys will NOT be avaible: OpenSSL is compiled without DSA support.");
+ rb_warning("OpenSSL is compiled without DSA support");
}
#endif /* NO_DSA */