aboutsummaryrefslogtreecommitdiffstats
path: root/ossl.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-12-29 22:03:52 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-12-29 22:03:52 +0000
commitcbaa93e6fa4465d3ebf1829bd599f36ed40b5932 (patch)
tree86d316f8933004565fd03ce43098e97b61208401 /ossl.c
parent9a4f3e1af0b01692db14c92c5a35e5067aa520e8 (diff)
downloadruby-openssl-history-cbaa93e6fa4465d3ebf1829bd599f36ed40b5932.tar.gz
Port to Ruby1.8 (alloc|copy) framework.
Diffstat (limited to 'ossl.c')
-rw-r--r--ossl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ossl.c b/ossl.c
index 1b88a66..d6aeda3 100644
--- a/ossl.c
+++ b/ossl.c
@@ -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, "");