Ruby
3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
|
#include <RUBY_EXTCONF_H>
#include <assert.h>
#include <ruby.h>
#include <errno.h>
#include <ruby/io.h>
#include <ruby/thread.h>
#include <openssl/opensslv.h>
#include <openssl/err.h>
#include <openssl/asn1.h>
#include <openssl/x509v3.h>
#include <openssl/ssl.h>
#include <openssl/pkcs12.h>
#include <openssl/pkcs7.h>
#include <openssl/rand.h>
#include <openssl/conf.h>
#include <openssl/ts.h>
#include <openssl/crypto.h>
#include <openssl/engine.h>
#include <openssl/ocsp.h>
#include <openssl/bn.h>
#include <openssl/rsa.h>
#include <openssl/dsa.h>
#include <openssl/evp.h>
#include <openssl/dh.h>
#include "openssl_missing.h"
#include "ruby_missing.h"
#include "ossl_asn1.h"
#include "ossl_bio.h"
#include "ossl_bn.h"
#include "ossl_cipher.h"
#include "ossl_config.h"
#include "ossl_digest.h"
#include "ossl_hmac.h"
#include "ossl_ns_spki.h"
#include "ossl_ocsp.h"
#include "ossl_pkcs12.h"
#include "ossl_pkcs7.h"
#include "ossl_pkey.h"
#include "ossl_rand.h"
#include "ossl_ssl.h"
#include "ossl_ts.h"
#include "ossl_x509.h"
#include "ossl_engine.h"
#include "ossl_kdf.h"
Go to the source code of this file.
Macros | |
#define | OSSL_Check_Kind(obj, klass) |
#define | ossl_str_adjust(str, p) |
#define | OSSL_BIO_reset(bio) |
#define | OSSL_Debug(...) |
Functions | |
STACK_OF (X509) *ossl_x509_ary2sk(VALUE) | |
int *VALUE | ossl_x509_sk2ary (const STACK_OF(X509) *certs) |
VALUE | ossl_x509crl_sk2ary (const STACK_OF(X509_CRL) *crl) |
VALUE | ossl_x509name_sk2ary (const STACK_OF(X509_NAME) *names) |
VALUE | ossl_buf2str (char *buf, int len) |
VALUE | ossl_str_new (const char *, long, int *) |
void | ossl_bin2hex (unsigned char *in, char *out, size_t len) |
VALUE | ossl_pem_passwd_value (VALUE) |
int | ossl_pem_passwd_cb (char *, int, int, void *) |
NORETURN (void ossl_raise(VALUE, const char *,...)) | |
void | ossl_clear_error (void) |
VALUE | ossl_to_der (VALUE) |
VALUE | ossl_to_der_if_possible (VALUE) |
void | Init_openssl (void) |
Variables | |
VALUE | mOSSL |
VALUE | eOSSLError |
VALUE | dOSSL |
#define OSSL_BIO_reset | ( | bio | ) |
#define OSSL_Check_Kind | ( | obj, | |
klass | |||
) |
#define OSSL_Debug | ( | ... | ) |
#define ossl_str_adjust | ( | str, | |
p | |||
) |
void Init_openssl | ( | void | ) |
Definition at line 1136 of file ossl.c.
References mOSSL, NULL, rb_define_module(), rb_define_singleton_method, rb_eRuntimeError, rb_ext_ractor_safe(), rb_global_variable(), and rb_raise().
NORETURN | ( | void | ossl_raiseVALUE, const char *,... | ) |
void ossl_bin2hex | ( | unsigned char * | in, |
char * | out, | ||
size_t | len | ||
) |
VALUE ossl_buf2str | ( | char * | buf, |
int | len | ||
) |
Definition at line 126 of file ossl.c.
References buf, len, ossl_str_new(), rb_jump_tag(), and str.
void ossl_clear_error | ( | void | ) |
int ossl_pem_passwd_cb | ( | char * | , |
int | , | ||
int | , | ||
void * | |||
) |
Definition at line 183 of file ossl.c.
Referenced by ossl_pkey_export_traditional(), and ossl_pkey_read_generic().
Definition at line 157 of file ossl.c.
References eOSSLError, NIL_P, ossl_raise(), Qnil, RSTRING_LEN, and StringValue.
Referenced by ossl_pkey_export_traditional().
Definition at line 107 of file ossl.c.
References rb_protect(), and str.
Referenced by ossl_buf2str(), and ossl_membio2str().
Definition at line 250 of file ossl.c.
References rb_funcall().
Definition at line 261 of file ossl.c.
References rb_respond_to().
STACK_OF | ( | X509 | ) |
VALUE dOSSL |
Definition at line 363 of file ossl.c.
Referenced by ossl_clear_error().
VALUE eOSSLError |
Definition at line 242 of file ossl.c.
Referenced by asn1integer_to_num(), Init_ossl_asn1(), Init_ossl_bn(), Init_ossl_cipher(), Init_ossl_config(), Init_ossl_dh(), Init_ossl_digest(), Init_ossl_dsa(), Init_ossl_ec(), Init_ossl_engine(), Init_ossl_hmac(), Init_ossl_kdf(), Init_ossl_ns_spki(), Init_ossl_ocsp(), Init_ossl_pkcs12(), Init_ossl_pkcs7(), Init_ossl_pkey(), Init_ossl_rand(), Init_ossl_rsa(), Init_ossl_ssl(), Init_ossl_ssl_session(), Init_ossl_x509attr(), Init_ossl_x509cert(), Init_ossl_x509crl(), Init_ossl_x509ext(), Init_ossl_x509req(), Init_ossl_x509revoked(), Init_ossl_x509store(), num_to_asn1integer(), and ossl_pem_passwd_value().
VALUE mOSSL |
Definition at line 237 of file ossl.c.
Referenced by Init_openssl(), Init_ossl_asn1(), Init_ossl_bn(), Init_ossl_cipher(), Init_ossl_config(), Init_ossl_dh(), Init_ossl_digest(), Init_ossl_dsa(), Init_ossl_ec(), Init_ossl_engine(), Init_ossl_hmac(), Init_ossl_kdf(), Init_ossl_ns_spki(), Init_ossl_ocsp(), Init_ossl_pkcs12(), Init_ossl_pkcs7(), Init_ossl_pkey(), Init_ossl_rand(), Init_ossl_rsa(), Init_ossl_ssl(), Init_ossl_ssl_session(), Init_ossl_ts(), Init_ossl_x509(), Init_ossl_x509attr(), Init_ossl_x509cert(), Init_ossl_x509crl(), Init_ossl_x509ext(), Init_ossl_x509req(), Init_ossl_x509revoked(), and Init_ossl_x509store().