Project

General

Profile

Bug #2536 ยป fix_stack_not_found.patch

xman (Shin Yee Chung), 12/28/2009 11:54 AM

View differences:

ext/openssl/ossl.c
#define OSSL_IMPL_SK2ARY(name, type) \
VALUE \
ossl_##name##_sk2ary(STACK *sk) \
ossl_##name##_sk2ary(STACK_OF(type) *sk) \
{ \
type *t; \
int i, num; \
ext/openssl/ossl_pkcs7.c
return self;
}
static STACK *
static void *
pkcs7_get_certs_or_crls(VALUE self, int want_certs)
{
PKCS7 *pkcs7;
ext/openssl/ossl_ssl.c
if (!ciphers)
return rb_ary_new();
num = sk_num((STACK*)ciphers);
num = sk_num((STACK_OF(SSL_CIPHER)*)ciphers);
ary = rb_ary_new2(num);
for(i = 0; i < num; i++){
cipher = (SSL_CIPHER*)sk_value((STACK*)ciphers, i);
cipher = (SSL_CIPHER*)sk_value((STACK_OF(SSL_CIPHER)*)ciphers, i);
rb_ary_push(ary, ossl_ssl_cipher_to_ary(cipher));
}
return ary;
    (1-1/1)