diff options
author | nobu <nobu@ruby-lang.org> | 2010-04-22 08:21:01 +0000 |
---|---|---|
committer | nobu <nobu@ruby-lang.org> | 2010-04-22 08:21:01 +0000 |
commit | def991f31c3552ce7a66843153e7b0fea4676c8e (patch) | |
tree | 4a07c8818281d8630934fe99c6776a0dff276f7d /ext/openssl/ossl_pkey.c | |
parent | 7edf7377a94be591d03a2cc32479bdbbc55464a2 (diff) | |
download | ruby-openssl-history-def991f31c3552ce7a66843153e7b0fea4676c8e.tar.gz |
* ext/**/*.[ch]: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_pkey.c')
-rw-r--r-- | ext/openssl/ossl_pkey.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/openssl/ossl_pkey.c b/ext/openssl/ossl_pkey.c index 37a9f8c..16ceff4 100644 --- a/ext/openssl/ossl_pkey.c +++ b/ext/openssl/ossl_pkey.c @@ -99,7 +99,7 @@ EVP_PKEY * GetPrivPKeyPtr(VALUE obj) { EVP_PKEY *pkey; - + if (rb_funcall(obj, id_private_q, 0, NULL) != Qtrue) { ossl_raise(rb_eArgError, "Private key is needed."); } @@ -112,7 +112,7 @@ EVP_PKEY * DupPKeyPtr(VALUE obj) { EVP_PKEY *pkey; - + SafeGetPKey(obj, pkey); CRYPTO_add(&pkey->references, 1, CRYPTO_LOCK_EVP_PKEY); @@ -123,7 +123,7 @@ EVP_PKEY * DupPrivPKeyPtr(VALUE obj) { EVP_PKEY *pkey; - + if (rb_funcall(obj, id_private_q, 0, NULL) != Qtrue) { ossl_raise(rb_eArgError, "Private key is needed."); } @@ -216,19 +216,19 @@ Init_ossl_pkey() #endif mPKey = rb_define_module_under(mOSSL, "PKey"); - + ePKeyError = rb_define_class_under(mPKey, "PKeyError", eOSSLError); cPKey = rb_define_class_under(mPKey, "PKey", rb_cObject); - + rb_define_alloc_func(cPKey, ossl_pkey_alloc); rb_define_method(cPKey, "initialize", ossl_pkey_initialize, 0); rb_define_method(cPKey, "sign", ossl_pkey_sign, 2); rb_define_method(cPKey, "verify", ossl_pkey_verify, 3); - + id_private_q = rb_intern("private?"); - + /* * INIT rsa, dsa, dh, ec */ |