Project

General

Profile

Feature #5157 » 0002-ext-openssl-ossl_-asn1-pkey-.c-remove-unused-variabl.patch

normalperson (Eric Wong), 08/05/2011 06:39 AM

View differences:

ext/openssl/ossl_asn1.c
static VALUE
decode_eoc(unsigned char *der, int length)
{
VALUE ret;
if (length != 2 || !(der[0] == 0x00 && der[1] == 0x00))
ossl_raise(eASN1Error, NULL);
......
static VALUE
ossl_asn1_decode(VALUE self, VALUE obj)
{
VALUE ret, ary;
VALUE ret;
unsigned char *p;
volatile VALUE tmp;
long len, read = 0, offset = 0;
ext/openssl/ossl_pkey.c
static VALUE
ossl_pkey_new_from_data(int argc, VALUE *argv, VALUE self)
{
FILE *fp;
EVP_PKEY *pkey;
BIO *bio;
VALUE data, pass;
(2-2/2)