method
    
    new
  
      v1_9_1_378 - 
      Show latest stable
 - 
    0 notes - 
    Class: Request
    
  
  
- 1_8_6_287
 - 1_8_7_72
 - 1_8_7_330
 - 1_9_1_378 (0)
 - 1_9_2_180 (0)
 - 1_9_3_125 (0)
 - 1_9_3_392 (0)
 - 2_1_10 (0)
 - 2_2_9 (38)
 - 2_4_6 (0)
 - 2_5_5 (0)
 - 2_6_3 (0)
 - What's this?
 
new(p1 = v1)
  public
  
    Hide source    
    
      
  
static VALUE ossl_ocspreq_initialize(int argc, VALUE *argv, VALUE self) { VALUE arg; const unsigned char *p; rb_scan_args(argc, argv, "01", &arg); if(!NIL_P(arg)){ OCSP_REQUEST *req = DATA_PTR(self), *x; arg = ossl_to_der_if_possible(arg); StringValue(arg); p = (unsigned char*)RSTRING_PTR(arg); x = d2i_OCSP_REQUEST(&req, &p, RSTRING_LEN(arg)); DATA_PTR(self) = req; if(!x){ ossl_raise(eOCSPError, "cannot load DER encoded request"); } } return self; }

  
  