In Files

  • openssl/lib/openssl/bn.rb
  • openssl/lib/openssl/cipher.rb
  • openssl/lib/openssl/digest.rb
  • openssl/lib/openssl/ssl.rb
  • openssl/lib/openssl/x509.rb
  • openssl/ossl.c
  • openssl/ossl_asn1.c
  • openssl/ossl_bn.c
  • openssl/ossl_cipher.c
  • openssl/ossl_digest.c
  • openssl/ossl_hmac.c
  • openssl/ossl_pkey.c
  • openssl/ossl_pkey_dh.c
  • openssl/ossl_pkey_dsa.c
  • openssl/ossl_pkey_ec.c
  • openssl/ossl_pkey_rsa.c
  • openssl/ossl_rand.c
  • openssl/ossl_ssl.c
  • openssl/ossl_ssl_session.c

Class/Module Index [+]

Quicksearch

OpenSSL

$RCSfile$ – Ruby-space definitions that completes C-space funcs for BN

Info

'OpenSSL for Ruby 2' project
Copyright (C) 2002  Michal Rokos <m.rokos@sh.cvut.cz>
All rights reserved.

Licence

This program is licenced under the same licence as Ruby.
(See the file 'LICENCE'.)

Version

$Id: bn.rb 11708 2007-02-12 23:01:19Z shyouhei $

## # Should we care what if somebody require this file directly? require ‘openssl’

$RCSfile$ – Ruby-space predefined Cipher subclasses

Info

'OpenSSL for Ruby 2' project
Copyright (C) 2002  Michal Rokos <m.rokos@sh.cvut.cz>
All rights reserved.

Licence

This program is licenced under the same licence as Ruby.
(See the file 'LICENCE'.)

Version

$Id: cipher.rb 12148 2007-04-05 05:59:22Z technorama $

## # Should we care what if somebody require this file directly? require ‘openssl’

$RCSfile$ – Ruby-space predefined Digest subclasses

Info

'OpenSSL for Ruby 2' project
Copyright (C) 2002  Michal Rokos <m.rokos@sh.cvut.cz>
All rights reserved.

Licence

This program is licenced under the same licence as Ruby.
(See the file 'LICENCE'.)

Version

$Id: digest.rb 15602 2008-02-25 08:51:18Z technorama $

## # Should we care what if somebody require this file directly? require ‘openssl’

OSSL library init

let rdoc know about mOSSL

let rdoc know about mOSSL

let rdoc know about mOSSL

let rdoc know about mOSSL

let rdoc know about mOSSL

let rdoc know about mOSSL

let rdoc know about mOSSL and mPKey

let rdoc know about mOSSL and mPKey

let rdoc know about mOSSL and mPKey

let rdoc know about mOSSL

let rdoc know about mOSSL

let rdoc know about mOSSL

Public Class Methods

debug → true | false click to toggle source
 
               static VALUE
ossl_debug_get(VALUE self)
{
    return dOSSL;
}
            
debug = boolean → boolean click to toggle source

Turns on or off CRYPTO_MEM_CHECK. Also shows some debugging message on stderr.

 
               static VALUE
ossl_debug_set(VALUE self, VALUE val)
{
    VALUE old = dOSSL;
    dOSSL = val;
        
    if (old != dOSSL) {
        if (dOSSL == Qtrue) {
            CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
            fprintf(stderr, "OSSL_DEBUG: IS NOW ON!\n");
        } else if (old == Qtrue) {
            CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF);
            fprintf(stderr, "OSSL_DEBUG: IS NOW OFF!\n");
        }
    }
    return val;
}
            
errors → [String...] click to toggle source

See any remaining errors held in queue.

Any errors you see here are probably due to a bug in ruby’s OpenSSL implementation.

 
               VALUE
ossl_get_errors()
{
    VALUE ary;
    long e;

    ary = rb_ary_new();
    while ((e = ERR_get_error()) != 0){
        rb_ary_push(ary, rb_str_new2(ERR_error_string(e, NULL)));
    }

    return ary;
}
            

Commenting is here to help enhance the documentation. For example, sample code, or clarification of the documentation.

If you are posting code samples in your comments, please wrap them in "<pre><code class="ruby" > ... </code></pre>" markup in order to get syntax highlighting.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file a bug report so that it can be corrected for the next release. Thank you.

blog comments powered by Disqus