diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-12-29 22:03:52 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-12-29 22:03:52 +0000 |
commit | cbaa93e6fa4465d3ebf1829bd599f36ed40b5932 (patch) | |
tree | 86d316f8933004565fd03ce43098e97b61208401 /ossl.c | |
parent | 9a4f3e1af0b01692db14c92c5a35e5067aa520e8 (diff) | |
download | ruby-openssl-history-cbaa93e6fa4465d3ebf1829bd599f36ed40b5932.tar.gz |
Port to Ruby1.8 (alloc|copy) framework.
Diffstat (limited to 'ossl.c')
-rw-r--r-- | ossl.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -83,11 +83,14 @@ time_to_time_t(VALUE time) * ASN1_INTEGER conversions * TODO: Make a decision what's the right way to do this. */ +#define DO_IT_VIA_RUBY 0 VALUE asn1integer_to_num(ASN1_INTEGER *ai) { BIGNUM *bn; +#if DO_IT_VIA_RUBY char *txt; +#endif VALUE num; if (!ai) { @@ -96,7 +99,7 @@ asn1integer_to_num(ASN1_INTEGER *ai) if (!(bn = ASN1_INTEGER_to_BN(ai, NULL))) { ossl_raise(eOSSLError, ""); } -#if 0 +#if DO_IT_VIA_RUBY if (!(txt = BN_bn2dec(bn))) { BN_free(bn); ossl_raise(eOSSLError, ""); |