fix_stack_not_found.patch

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

Download (1.3 kB)

b/ext/openssl/ossl.c
92 92

  
93 93
#define OSSL_IMPL_SK2ARY(name, type)	        \
94 94
VALUE						\
95
ossl_##name##_sk2ary(STACK *sk)			\
95
ossl_##name##_sk2ary(STACK_OF(type) *sk)			\
96 96
{						\
97 97
    type *t;					\
98 98
    int i, num;					\
b/ext/openssl/ossl_pkcs7.c
572 572
    return self;
573 573
}
574 574

  
575
static STACK *
575
static void *
576 576
pkcs7_get_certs_or_crls(VALUE self, int want_certs)
577 577
{
578 578
    PKCS7 *pkcs7;
b/ext/openssl/ossl_ssl.c
623 623
    if (!ciphers)
624 624
        return rb_ary_new();
625 625

  
626
    num = sk_num((STACK*)ciphers);
626
    num = sk_num((STACK_OF(SSL_CIPHER)*)ciphers);
627 627
    ary = rb_ary_new2(num);
628 628
    for(i = 0; i < num; i++){
629
        cipher = (SSL_CIPHER*)sk_value((STACK*)ciphers, i);
629
        cipher = (SSL_CIPHER*)sk_value((STACK_OF(SSL_CIPHER)*)ciphers, i);
630 630
        rb_ary_push(ary, ossl_ssl_cipher_to_ary(cipher));
631 631
    }
632 632
    return ary;