mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_asn1.c (Init_ossl_asn1): Let rdoc know about
externally defined modules; submitted by Technorama Ltd. <oss-ruby AT technorama.net> in [ruby-bugs:PR#4704]. * ext/openssl/ossl_bn.c (Init_ossl_bn): Ditto. * ext/openssl/ossl_cipher.c (Init_ossl_cipher): Ditto. * ext/openssl/ossl_digest.c (Init_ossl_digest): Ditto. * ext/openssl/ossl_hmac.c (Init_ossl_hmac): Ditto. * ext/openssl/ossl_pkey.c (Init_ossl_pkey): Ditto. * ext/openssl/ossl_pkey_dh.c (Init_ossl_dh): Ditto. * ext/openssl/ossl_pkey_dsa.c (Init_ossl_dsa): Ditto. * ext/openssl/ossl_pkey_rsa.c (Init_ossl_rsa): Ditto. * ext/openssl/ossl_rand.c (Init_ossl_rand): Ditto. * ext/openssl/ossl_ssl.c (Init_ossl_ssl): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5a347e064f
commit
024a7fd7a4
12 changed files with 73 additions and 0 deletions
26
ChangeLog
26
ChangeLog
|
@ -1,3 +1,29 @@
|
||||||
|
Mon Mar 12 10:53:28 2007 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
|
* ext/openssl/ossl_asn1.c (Init_ossl_asn1): Let rdoc know about
|
||||||
|
externally defined modules; submitted by Technorama
|
||||||
|
Ltd. <oss-ruby AT technorama.net> in [ruby-bugs:PR#4704].
|
||||||
|
|
||||||
|
* ext/openssl/ossl_bn.c (Init_ossl_bn): Ditto.
|
||||||
|
|
||||||
|
* ext/openssl/ossl_cipher.c (Init_ossl_cipher): Ditto.
|
||||||
|
|
||||||
|
* ext/openssl/ossl_digest.c (Init_ossl_digest): Ditto.
|
||||||
|
|
||||||
|
* ext/openssl/ossl_hmac.c (Init_ossl_hmac): Ditto.
|
||||||
|
|
||||||
|
* ext/openssl/ossl_pkey.c (Init_ossl_pkey): Ditto.
|
||||||
|
|
||||||
|
* ext/openssl/ossl_pkey_dh.c (Init_ossl_dh): Ditto.
|
||||||
|
|
||||||
|
* ext/openssl/ossl_pkey_dsa.c (Init_ossl_dsa): Ditto.
|
||||||
|
|
||||||
|
* ext/openssl/ossl_pkey_rsa.c (Init_ossl_rsa): Ditto.
|
||||||
|
|
||||||
|
* ext/openssl/ossl_rand.c (Init_ossl_rand): Ditto.
|
||||||
|
|
||||||
|
* ext/openssl/ossl_ssl.c (Init_ossl_ssl): Ditto.
|
||||||
|
|
||||||
Sun Mar 11 18:42:01 2007 Akinori MUSHA <knu@iDaemons.org>
|
Sun Mar 11 18:42:01 2007 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* misc/ruby-mode.el (ruby-block-end-re): Support for the
|
* misc/ruby-mode.el (ruby-block-end-re): Support for the
|
||||||
|
|
|
@ -1087,6 +1087,10 @@ Init_ossl_asn1()
|
||||||
VALUE ary;
|
VALUE ary;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
#if 0 /* let rdoc know about mOSSL */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
#endif
|
||||||
|
|
||||||
sUNIVERSAL = rb_intern("UNIVERSAL");
|
sUNIVERSAL = rb_intern("UNIVERSAL");
|
||||||
sCONTEXT_SPECIFIC = rb_intern("CONTEXT_SPECIFIC");
|
sCONTEXT_SPECIFIC = rb_intern("CONTEXT_SPECIFIC");
|
||||||
sAPPLICATION = rb_intern("APPLICATION");
|
sAPPLICATION = rb_intern("APPLICATION");
|
||||||
|
|
|
@ -600,6 +600,10 @@ ossl_bn_is_prime_fasttest(int argc, VALUE *argv, VALUE self)
|
||||||
void
|
void
|
||||||
Init_ossl_bn()
|
Init_ossl_bn()
|
||||||
{
|
{
|
||||||
|
#if 0 /* let rdoc know about mOSSL */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!(ossl_bn_ctx = BN_CTX_new())) {
|
if (!(ossl_bn_ctx = BN_CTX_new())) {
|
||||||
ossl_raise(rb_eRuntimeError, "Cannot init BN_CTX");
|
ossl_raise(rb_eRuntimeError, "Cannot init BN_CTX");
|
||||||
}
|
}
|
||||||
|
|
|
@ -369,6 +369,10 @@ CIPHER_0ARG_INT(block_size)
|
||||||
void
|
void
|
||||||
Init_ossl_cipher(void)
|
Init_ossl_cipher(void)
|
||||||
{
|
{
|
||||||
|
#if 0 /* let rdoc know about mOSSL */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
#endif
|
||||||
|
|
||||||
mCipher = rb_define_module_under(mOSSL, "Cipher");
|
mCipher = rb_define_module_under(mOSSL, "Cipher");
|
||||||
eCipherError = rb_define_class_under(mOSSL, "CipherError", eOSSLError);
|
eCipherError = rb_define_class_under(mOSSL, "CipherError", eOSSLError);
|
||||||
cCipher = rb_define_class_under(mCipher, "Cipher", rb_cObject);
|
cCipher = rb_define_class_under(mCipher, "Cipher", rb_cObject);
|
||||||
|
|
|
@ -264,6 +264,10 @@ ossl_digest_size(VALUE self)
|
||||||
void
|
void
|
||||||
Init_ossl_digest()
|
Init_ossl_digest()
|
||||||
{
|
{
|
||||||
|
#if 0 /* let rdoc know about mOSSL */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
#endif
|
||||||
|
|
||||||
mDigest = rb_define_module_under(mOSSL, "Digest");
|
mDigest = rb_define_module_under(mOSSL, "Digest");
|
||||||
|
|
||||||
eDigestError = rb_define_class_under(mDigest, "DigestError", eOSSLError);
|
eDigestError = rb_define_class_under(mDigest, "DigestError", eOSSLError);
|
||||||
|
|
|
@ -191,6 +191,10 @@ ossl_hmac_s_hexdigest(VALUE klass, VALUE digest, VALUE key, VALUE data)
|
||||||
void
|
void
|
||||||
Init_ossl_hmac()
|
Init_ossl_hmac()
|
||||||
{
|
{
|
||||||
|
#if 0 /* let rdoc know about mOSSL */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
#endif
|
||||||
|
|
||||||
eHMACError = rb_define_class_under(mOSSL, "HMACError", eOSSLError);
|
eHMACError = rb_define_class_under(mOSSL, "HMACError", eOSSLError);
|
||||||
|
|
||||||
cHMAC = rb_define_class_under(mOSSL, "HMAC", rb_cObject);
|
cHMAC = rb_define_class_under(mOSSL, "HMAC", rb_cObject);
|
||||||
|
|
|
@ -207,6 +207,10 @@ ossl_pkey_verify(VALUE self, VALUE digest, VALUE sig, VALUE data)
|
||||||
void
|
void
|
||||||
Init_ossl_pkey()
|
Init_ossl_pkey()
|
||||||
{
|
{
|
||||||
|
#if 0 /* let rdoc know about mOSSL */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
#endif
|
||||||
|
|
||||||
mPKey = rb_define_module_under(mOSSL, "PKey");
|
mPKey = rb_define_module_under(mOSSL, "PKey");
|
||||||
|
|
||||||
ePKeyError = rb_define_class_under(mPKey, "PKeyError", eOSSLError);
|
ePKeyError = rb_define_class_under(mPKey, "PKeyError", eOSSLError);
|
||||||
|
|
|
@ -417,6 +417,11 @@ ossl_create_dh(unsigned char *p, size_t plen, unsigned char *g, size_t glen)
|
||||||
void
|
void
|
||||||
Init_ossl_dh()
|
Init_ossl_dh()
|
||||||
{
|
{
|
||||||
|
#if 0 /* let rdoc know about mOSSL and mPKey */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
mPKey = rb_define_module_under(mOSSL, "PKey");
|
||||||
|
#endif
|
||||||
|
|
||||||
eDHError = rb_define_class_under(mPKey, "DHError", ePKeyError);
|
eDHError = rb_define_class_under(mPKey, "DHError", ePKeyError);
|
||||||
cDH = rb_define_class_under(mPKey, "DH", cPKey);
|
cDH = rb_define_class_under(mPKey, "DH", cPKey);
|
||||||
rb_define_singleton_method(cDH, "generate", ossl_dh_s_generate, -1);
|
rb_define_singleton_method(cDH, "generate", ossl_dh_s_generate, -1);
|
||||||
|
|
|
@ -377,6 +377,11 @@ OSSL_PKEY_BN(dsa, priv_key);
|
||||||
void
|
void
|
||||||
Init_ossl_dsa()
|
Init_ossl_dsa()
|
||||||
{
|
{
|
||||||
|
#if 0 /* let rdoc know about mOSSL and mPKey */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
mPKey = rb_define_module_under(mOSSL, "PKey");
|
||||||
|
#endif
|
||||||
|
|
||||||
eDSAError = rb_define_class_under(mPKey, "DSAError", ePKeyError);
|
eDSAError = rb_define_class_under(mPKey, "DSAError", ePKeyError);
|
||||||
|
|
||||||
cDSA = rb_define_class_under(mPKey, "DSA", cPKey);
|
cDSA = rb_define_class_under(mPKey, "DSA", cPKey);
|
||||||
|
|
|
@ -455,6 +455,11 @@ OSSL_PKEY_BN(rsa, iqmp);
|
||||||
void
|
void
|
||||||
Init_ossl_rsa()
|
Init_ossl_rsa()
|
||||||
{
|
{
|
||||||
|
#if 0 /* let rdoc know about mOSSL and mPKey */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
mPKey = rb_define_module_under(mOSSL, "PKey");
|
||||||
|
#endif
|
||||||
|
|
||||||
eRSAError = rb_define_class_under(mPKey, "RSAError", ePKeyError);
|
eRSAError = rb_define_class_under(mPKey, "RSAError", ePKeyError);
|
||||||
|
|
||||||
cRSA = rb_define_class_under(mPKey, "RSA", cPKey);
|
cRSA = rb_define_class_under(mPKey, "RSA", cPKey);
|
||||||
|
|
|
@ -115,6 +115,10 @@ ossl_rand_egd_bytes(VALUE self, VALUE filename, VALUE len)
|
||||||
void
|
void
|
||||||
Init_ossl_rand()
|
Init_ossl_rand()
|
||||||
{
|
{
|
||||||
|
#if 0 /* let rdoc know about mOSSL */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
#endif
|
||||||
|
|
||||||
mRandom = rb_define_module_under(mOSSL, "Random");
|
mRandom = rb_define_module_under(mOSSL, "Random");
|
||||||
|
|
||||||
eRandomError = rb_define_class_under(mRandom, "RandomError", eOSSLError);
|
eRandomError = rb_define_class_under(mRandom, "RandomError", eOSSLError);
|
||||||
|
|
|
@ -850,6 +850,10 @@ Init_ossl_ssl()
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
#if 0 /* let rdoc know about mOSSL */
|
||||||
|
mOSSL = rb_define_module("OpenSSL");
|
||||||
|
#endif
|
||||||
|
|
||||||
ossl_ssl_ex_vcb_idx = SSL_get_ex_new_index(0,"ossl_ssl_ex_vcb_idx",0,0,0);
|
ossl_ssl_ex_vcb_idx = SSL_get_ex_new_index(0,"ossl_ssl_ex_vcb_idx",0,0,0);
|
||||||
ossl_ssl_ex_store_p = SSL_get_ex_new_index(0,"ossl_ssl_ex_store_p",0,0,0);
|
ossl_ssl_ex_store_p = SSL_get_ex_new_index(0,"ossl_ssl_ex_store_p",0,0,0);
|
||||||
ossl_ssl_ex_ptr_idx = SSL_get_ex_new_index(0,"ossl_ssl_ex_ptr_idx",0,0,0);
|
ossl_ssl_ex_ptr_idx = SSL_get_ex_new_index(0,"ossl_ssl_ex_ptr_idx",0,0,0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue