#include "ossl.h"Go to the source code of this file.
| #define DefOCSPConst | ( | x | ) | rb_define_const(mOCSP, #x, INT2NUM(OCSP_##x)) |
Referenced by Init_ossl_ocsp().
| #define DefOCSPVConst | ( | x | ) | rb_define_const(mOCSP, "V_" #x, INT2NUM(V_OCSP_##x)) |
Referenced by Init_ossl_ocsp().
| #define GetOCSPBasicRes | ( | obj, | |||
| res | ) |
do { \ Data_Get_Struct((obj), OCSP_BASICRESP, (res)); \ if(!(res)) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \ } while (0)
Definition at line 46 of file ossl_ocsp.c.
Referenced by ossl_ocspbres_add_nonce(), ossl_ocspbres_add_status(), ossl_ocspbres_copy_nonce(), ossl_ocspbres_get_status(), ossl_ocspbres_sign(), ossl_ocspbres_verify(), and ossl_ocspres_s_create().
| #define GetOCSPCertId | ( | obj, | |||
| cid | ) |
do { \ Data_Get_Struct((obj), OCSP_CERTID, (cid)); \ if(!(cid)) ossl_raise(rb_eRuntimeError, "Cert ID wasn't initialized!"); \ } while (0)
Definition at line 59 of file ossl_ocsp.c.
Referenced by ossl_ocspcid_cmp(), ossl_ocspcid_cmp_issuer(), ossl_ocspcid_get_serial(), ossl_ocspcid_initialize(), and ossl_ocspreq_add_certid().
| #define GetOCSPReq | ( | obj, | |||
| req | ) |
do { \ Data_Get_Struct((obj), OCSP_REQUEST, (req)); \ if(!(req)) ossl_raise(rb_eRuntimeError, "Request wasn't initialized!"); \ } while (0)
Definition at line 20 of file ossl_ocsp.c.
Referenced by ossl_ocspreq_add_certid(), ossl_ocspreq_add_nonce(), ossl_ocspreq_check_nonce(), ossl_ocspreq_get_certid(), ossl_ocspreq_sign(), ossl_ocspreq_to_der(), and ossl_ocspreq_verify().
| #define GetOCSPRes | ( | obj, | |||
| res | ) |
do { \ Data_Get_Struct((obj), OCSP_RESPONSE, (res)); \ if(!(res)) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \ } while (0)
Definition at line 33 of file ossl_ocsp.c.
Referenced by ossl_ocspres_get_basic(), ossl_ocspres_status(), ossl_ocspres_status_string(), and ossl_ocspres_to_der().
| #define SafeGetOCSPBasicRes | ( | obj, | |||
| res | ) |
do { \ OSSL_Check_Kind((obj), cOCSPBasicRes); \ GetOCSPBasicRes((obj), (res)); \ } while (0)
Definition at line 50 of file ossl_ocsp.c.
Referenced by ossl_ocspreq_check_nonce().
| #define SafeGetOCSPCertId | ( | obj, | |||
| cid | ) |
do { \ OSSL_Check_Kind((obj), cOCSPCertId); \ GetOCSPCertId((obj), (cid)); \ } while (0)
Definition at line 63 of file ossl_ocsp.c.
Referenced by ossl_ocspbres_add_status(), ossl_ocspcid_cmp(), and ossl_ocspcid_cmp_issuer().
| #define SafeGetOCSPReq | ( | obj, | |||
| req | ) |
do { \ OSSL_Check_Kind((obj), cOCSPReq); \ GetOCSPReq((obj), (req)); \ } while (0)
Definition at line 24 of file ossl_ocsp.c.
Referenced by ossl_ocspbres_copy_nonce().
| #define SafeGetOCSPRes | ( | obj, | |||
| res | ) |
do { \ OSSL_Check_Kind((obj), cOCSPRes); \ GetOCSPRes((obj), (res)); \ } while (0)
Definition at line 37 of file ossl_ocsp.c.
| #define WrapOCSPBasicRes | ( | klass, | |||
| obj, | |||||
| res | ) |
do { \ if(!(res)) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \ (obj) = Data_Wrap_Struct((klass), 0, OCSP_BASICRESP_free, (res)); \ } while (0)
Definition at line 42 of file ossl_ocsp.c.
Referenced by ossl_ocspbres_alloc(), and ossl_ocspres_get_basic().
| #define WrapOCSPCertId | ( | klass, | |||
| obj, | |||||
| cid | ) |
do { \ if(!(cid)) ossl_raise(rb_eRuntimeError, "Cert ID wasn't initialized!"); \ (obj) = Data_Wrap_Struct((klass), 0, OCSP_CERTID_free, (cid)); \ } while (0)
Definition at line 55 of file ossl_ocsp.c.
Referenced by ossl_ocspcertid_new(), ossl_ocspcid_alloc(), and ossl_ocspreq_get_certid().
| #define WrapOCSPReq | ( | klass, | |||
| obj, | |||||
| req | ) |
do { \ if(!(req)) ossl_raise(rb_eRuntimeError, "Request wasn't initialized!"); \ (obj) = Data_Wrap_Struct((klass), 0, OCSP_REQUEST_free, (req)); \ } while (0)
Definition at line 16 of file ossl_ocsp.c.
Referenced by ossl_ocspreq_alloc().
| #define WrapOCSPRes | ( | klass, | |||
| obj, | |||||
| res | ) |
do { \ if(!(res)) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \ (obj) = Data_Wrap_Struct((klass), 0, OCSP_RESPONSE_free, (res)); \ } while (0)
Definition at line 29 of file ossl_ocsp.c.
Referenced by ossl_ocspres_alloc(), and ossl_ocspres_s_create().
| void Init_ossl_ocsp | ( | void | ) |
Definition at line 697 of file ossl_ocsp.c.
References cOCSPBasicRes, cOCSPCertId, cOCSPReq, cOCSPRes, DefOCSPConst, DefOCSPVConst, eOCSPError, eOSSLError, mOCSP, mOSSL, ossl_ocspbres_add_nonce(), ossl_ocspbres_add_status(), ossl_ocspbres_alloc(), ossl_ocspbres_copy_nonce(), ossl_ocspbres_get_status(), ossl_ocspbres_initialize(), ossl_ocspbres_sign(), ossl_ocspbres_verify(), ossl_ocspcid_alloc(), ossl_ocspcid_cmp(), ossl_ocspcid_cmp_issuer(), ossl_ocspcid_get_serial(), ossl_ocspcid_initialize(), ossl_ocspreq_add_certid(), ossl_ocspreq_add_nonce(), ossl_ocspreq_alloc(), ossl_ocspreq_check_nonce(), ossl_ocspreq_get_certid(), ossl_ocspreq_initialize(), ossl_ocspreq_sign(), ossl_ocspreq_to_der(), ossl_ocspreq_verify(), ossl_ocspres_alloc(), ossl_ocspres_get_basic(), ossl_ocspres_initialize(), ossl_ocspres_s_create(), ossl_ocspres_status(), ossl_ocspres_status_string(), ossl_ocspres_to_der(), rb_cObject, rb_define_alloc_func(), rb_define_class_under(), rb_define_method(), rb_define_module_under(), and rb_define_singleton_method().
Referenced by Init_openssl().
Definition at line 429 of file ossl_ocsp.c.
References eOCSPError, GetOCSPBasicRes, NIL_P, NULL, ossl_raise(), rb_scan_args(), RSTRING_LENINT, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_ocsp().
| static VALUE ossl_ocspbres_add_status | ( | VALUE | self, | |
| VALUE | cid, | |||
| VALUE | status, | |||
| VALUE | reason, | |||
| VALUE | revtime, | |||
| VALUE | thisupd, | |||
| VALUE | nextupd, | |||
| VALUE | ext | |||
| ) | [static] |
Definition at line 451 of file ossl_ocsp.c.
References Check_Type, cX509Ext, DupX509ExtPtr(), eOCSPError, err, GetOCSPBasicRes, id, NIL_P, NULL, NUM2INT, OSSL_Check_Kind, ossl_raise(), RARRAY_LEN, RARRAY_PTR, rb_Integer(), rb_jump_tag(), rb_protect(), SafeGetOCSPCertId, and T_ARRAY.
Referenced by Init_ossl_ocsp().
Definition at line 396 of file ossl_ocsp.c.
References eOCSPError, NULL, ossl_raise(), and WrapOCSPBasicRes.
Referenced by Init_ossl_ocsp().
Definition at line 415 of file ossl_ocsp.c.
References GetOCSPBasicRes, INT2NUM(), and SafeGetOCSPReq.
Referenced by Init_ossl_ocsp().
Definition at line 519 of file ossl_ocsp.c.
References asn1time_to_time(), count, eOCSPError, GetOCSPBasicRes, INT2NUM(), NULL, ossl_ocspcertid_new(), ossl_raise(), ossl_x509ext_new(), Qnil, rb_ary_new(), and rb_ary_push().
Referenced by Init_ossl_ocsp().
Definition at line 409 of file ossl_ocsp.c.
Referenced by Init_ossl_ocsp().
Definition at line 564 of file ossl_ocsp.c.
References eOCSPError, GetOCSPBasicRes, GetPrivPKeyPtr(), GetX509CertPtr(), NIL_P, NULL, NUM2INT, ossl_raise(), rb_scan_args(), and STACK_OF().
Referenced by Init_ossl_ocsp().
Definition at line 594 of file ossl_ocsp.c.
References GetOCSPBasicRes, GetX509StorePtr(), NIL_P, NULL, NUM2INT, Qfalse, Qtrue, rb_scan_args(), rb_warn(), result, and STACK_OF().
Referenced by Init_ossl_ocsp().
| static VALUE ossl_ocspcertid_new | ( | OCSP_CERTID * | cid | ) | [static] |
Definition at line 79 of file ossl_ocsp.c.
References cOCSPCertId, and WrapOCSPCertId.
Referenced by ossl_ocspbres_get_status().
Definition at line 618 of file ossl_ocsp.c.
References eOCSPError, id, NULL, ossl_raise(), and WrapOCSPCertId.
Referenced by Init_ossl_ocsp().
Definition at line 661 of file ossl_ocsp.c.
References GetOCSPCertId, id, Qfalse, Qtrue, result, and SafeGetOCSPCertId.
Referenced by Init_ossl_ocsp().
Definition at line 674 of file ossl_ocsp.c.
References GetOCSPCertId, id, Qfalse, Qtrue, result, and SafeGetOCSPCertId.
Referenced by Init_ossl_ocsp().
Definition at line 687 of file ossl_ocsp.c.
References asn1integer_to_num(), GetOCSPCertId, and id.
Referenced by Init_ossl_ocsp().
Definition at line 631 of file ossl_ocsp.c.
References eOCSPError, GetDigestPtr(), GetOCSPCertId, GetX509CertPtr(), id, NIL_P, NULL, ossl_raise(), rb_scan_args(), and RDATA.
Referenced by Init_ossl_ocsp().
Definition at line 173 of file ossl_ocsp.c.
References eOCSPError, GetOCSPCertId, GetOCSPReq, id, NULL, and ossl_raise().
Referenced by Init_ossl_ocsp().
Definition at line 125 of file ossl_ocsp.c.
References eOCSPError, GetOCSPReq, NIL_P, NULL, ossl_raise(), rb_scan_args(), RSTRING_LENINT, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_ocsp().
Definition at line 90 of file ossl_ocsp.c.
References eOCSPError, NULL, ossl_raise(), and WrapOCSPReq.
Referenced by Init_ossl_ocsp().
Definition at line 159 of file ossl_ocsp.c.
References GetOCSPReq, INT2NUM(), and SafeGetOCSPBasicRes.
Referenced by Init_ossl_ocsp().
Definition at line 187 of file ossl_ocsp.c.
References cOCSPCertId, count, eOCSPError, GetOCSPReq, id, NULL, one(), ossl_raise(), Qnil, rb_ary_new(), rb_ary_push(), and WrapOCSPCertId.
Referenced by Init_ossl_ocsp().
Definition at line 103 of file ossl_ocsp.c.
References DATA_PTR, eOCSPError, NIL_P, ossl_raise(), ossl_to_der_if_possible(), rb_scan_args(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_ocsp().
Definition at line 210 of file ossl_ocsp.c.
References eOCSPError, GetOCSPReq, GetPrivPKeyPtr(), GetX509CertPtr(), NIL_P, NULL, NUM2INT, ossl_raise(), rb_scan_args(), and STACK_OF().
Referenced by Init_ossl_ocsp().
Definition at line 259 of file ossl_ocsp.c.
References eOCSPError, GetOCSPReq, len, NULL, ossl_raise(), ossl_str_adjust, rb_str_new(), and RSTRING_PTR.
Referenced by Init_ossl_ocsp().
Definition at line 238 of file ossl_ocsp.c.
References GetOCSPReq, GetX509StorePtr(), NIL_P, NULL, NUM2INT, Qfalse, Qtrue, rb_scan_args(), rb_warn(), result, and STACK_OF().
Referenced by Init_ossl_ocsp().
Definition at line 299 of file ossl_ocsp.c.
References eOCSPError, NULL, ossl_raise(), and WrapOCSPRes.
Referenced by Init_ossl_ocsp().
Definition at line 358 of file ossl_ocsp.c.
References cOCSPBasicRes, GetOCSPRes, Qnil, and WrapOCSPBasicRes.
Referenced by Init_ossl_ocsp().
Definition at line 312 of file ossl_ocsp.c.
References DATA_PTR, eOCSPError, NIL_P, ossl_raise(), ossl_to_der_if_possible(), rb_scan_args(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by Init_ossl_ocsp().
Definition at line 282 of file ossl_ocsp.c.
References eOCSPError, GetOCSPBasicRes, NIL_P, NULL, NUM2INT, ossl_raise(), and WrapOCSPRes.
Referenced by Init_ossl_ocsp().
Definition at line 334 of file ossl_ocsp.c.
References GetOCSPRes, and INT2NUM().
Referenced by Init_ossl_ocsp().
Definition at line 346 of file ossl_ocsp.c.
References GetOCSPRes, and rb_str_new2.
Referenced by Init_ossl_ocsp().
Definition at line 373 of file ossl_ocsp.c.
References eOCSPError, GetOCSPRes, len, NULL, ossl_raise(), ossl_str_adjust, rb_str_new(), and RSTRING_PTR.
Referenced by Init_ossl_ocsp().
Definition at line 72 of file ossl_ocsp.c.
Referenced by Init_ossl_ocsp(), and ossl_ocspres_get_basic().
Definition at line 73 of file ossl_ocsp.c.
Referenced by Init_ossl_ocsp(), ossl_ocspcertid_new(), and ossl_ocspreq_get_certid().
Definition at line 70 of file ossl_ocsp.c.
Referenced by Init_ossl_ocsp().
Definition at line 71 of file ossl_ocsp.c.
Referenced by Init_ossl_ocsp().
Definition at line 69 of file ossl_ocsp.c.
Referenced by Init_ossl_ocsp(), ossl_ocspbres_add_nonce(), ossl_ocspbres_add_status(), ossl_ocspbres_alloc(), ossl_ocspbres_get_status(), ossl_ocspbres_sign(), ossl_ocspcid_alloc(), ossl_ocspcid_initialize(), ossl_ocspreq_add_certid(), ossl_ocspreq_add_nonce(), ossl_ocspreq_alloc(), ossl_ocspreq_get_certid(), ossl_ocspreq_initialize(), ossl_ocspreq_sign(), ossl_ocspreq_to_der(), ossl_ocspres_alloc(), ossl_ocspres_initialize(), ossl_ocspres_s_create(), and ossl_ocspres_to_der().
Definition at line 68 of file ossl_ocsp.c.
Referenced by Init_ossl_ocsp().
1.6.1