summaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_engine.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-18 14:10:06 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-18 14:10:06 +0000
commit3ba5f71e1b1343e339cd52b91dea3ea2e8db7775 (patch)
treebe02312738c84536b2ab08ccadbbec3c031fff76 /ext/openssl/ossl_engine.c
parent0abe46fde591eedf5dacd1d25a73baaf7cfff317 (diff)
downloadruby-3ba5f71e1b1343e339cd52b91dea3ea2e8db7775.tar.gz
ruby-3ba5f71e1b1343e339cd52b91dea3ea2e8db7775.tar.xz
ruby-3ba5f71e1b1343e339cd52b91dea3ea2e8db7775.zip
* ext/readline/readline.c: use rb_f_notimplement for methods not
implemented. * ext/openssl/ossl_engine.c: ditto. * ext/openssl/ossl_config.c: ditto. * ext/openssl/ossl_cipher.c: ditto. * ext/openssl/ossl_pkcs5.c: ditto. * ext/openssl/ossl_x509ext.c: ditto. * ext/socket/socket.c: ditto. * ext/socket/basicsocket.c: ditto. * ext/socket/ancdata.c: ditto. * ext/socket/unixsocket.c: ditto. * ext/iconv/iconv.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_engine.c')
-rw-r--r--ext/openssl/ossl_engine.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/openssl/ossl_engine.c b/ext/openssl/ossl_engine.c
index 2dfed654f..ec6f7fdf9 100644
--- a/ext/openssl/ossl_engine.c
+++ b/ext/openssl/ossl_engine.c
@@ -166,10 +166,10 @@ ossl_engine_finish(VALUE self)
return Qnil;
}
+#if defined(HAVE_ENGINE_GET_CIPHER)
static VALUE
ossl_engine_get_cipher(VALUE self, VALUE name)
{
-#if defined(HAVE_ENGINE_GET_CIPHER)
ENGINE *e;
const EVP_CIPHER *ciph, *tmp;
char *s;
@@ -184,15 +184,15 @@ ossl_engine_get_cipher(VALUE self, VALUE name)
if(!ciph) ossl_raise(eEngineError, NULL);
return ossl_cipher_new(ciph);
+}
#else
- rb_notimplement();
+#define ossl_engine_get_cipher rb_f_notimplement
#endif
-}
+#if defined(HAVE_ENGINE_GET_DIGEST)
static VALUE
ossl_engine_get_digest(VALUE self, VALUE name)
{
-#if defined(HAVE_ENGINE_GET_DIGEST)
ENGINE *e;
const EVP_MD *md, *tmp;
char *s;
@@ -207,10 +207,10 @@ ossl_engine_get_digest(VALUE self, VALUE name)
if(!md) ossl_raise(eEngineError, NULL);
return ossl_digest_new(md);
+}
#else
- rb_notimplement();
+#define ossl_engine_get_digest rb_f_notimplement
#endif
-}
static VALUE
ossl_engine_load_privkey(int argc, VALUE *argv, VALUE self)