summaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey.c
diff options
context:
space:
mode:
authormichal <michal@ruby-lang.org>2003-09-12 13:46:48 +0000
committermichal <michal@ruby-lang.org>2003-09-12 13:46:48 +0000
commit87fc7b6f8e4989203bb961b1ad4842e259ae3589 (patch)
tree627c8d7c7fec4ed24e24c44512ac04b553628fc3 /ext/openssl/ossl_pkey.c
parentc1a2bc7b81987de1478e7cf3af092b6b32540827 (diff)
downloadruby-openssl-history-87fc7b6f8e4989203bb961b1ad4842e259ae3589.tar.gz
OpenSSL update
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_pkey.c')
-rw-r--r--ext/openssl/ossl_pkey.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/openssl/ossl_pkey.c b/ext/openssl/ossl_pkey.c
index 3121cdb..f9f8c0a 100644
--- a/ext/openssl/ossl_pkey.c
+++ b/ext/openssl/ossl_pkey.c
@@ -19,6 +19,21 @@ VALUE ePKeyError;
ID id_private_q;
/*
+ * callback for generating keys
+ */
+void
+ossl_generate_cb(int p, int n, void *arg)
+{
+ VALUE ary;
+
+ ary = rb_ary_new2(2);
+ rb_ary_store(ary, 0, INT2NUM(p));
+ rb_ary_store(ary, 1, INT2NUM(n));
+
+ rb_yield(ary);
+}
+
+/*
* Public
*/
VALUE