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 30028 2010-12-02 08:05:48Z yugui $

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


$RCSfile$ – Buffering mix-in module.

Info

'OpenSSL for Ruby 2' project
Copyright (C) 2001 GOTOU YUUZOU <gotoyuzo@notwork.org>
All rights reserved.

Licence

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

Version

$Id: buffering.rb 31777 2011-05-28 23:32:46Z yugui $

$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 25189 2009-10-02 12:04:37Z akr $

## # 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 26743 2010-02-23 17:33:39Z knu $

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


$RCSfile$ – Ruby-space definitions that completes C-space funcs for X509 and 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: x509-internal.rb 27967 2010-05-23 08:48:44Z nobu $

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;
}
blog comments powered by Disqus