aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-03-06 08:04:54 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-03-06 08:04:54 +0000
commit91e607a11b3862c0aa966712149b2afd2a00d90d (patch)
tree86ce514bcb17f0d29183df4810849c89613b8433
parent3c8abbf103555809d110c21f89de60869a4a6bea (diff)
downloadruby-openssl-history-91e607a11b3862c0aa966712149b2afd2a00d90d.tar.gz
* build fix-ups
-rw-r--r--ChangeLog3
-rw-r--r--ossl_bn.c21
2 files changed, 13 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 4268bf6..aec5d90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@ Copyright (C) 2001 Michal Rokos <m.rokos@sh.cvut.cz>
All rights reserved.
$Log$
+Revision 1.34 2002/03/06 08:05:05 majkl
+ * build fix-ups
+
Revision 1.33 2002/03/05 15:05:57 majkl
* WARNING! All to_str methods are not used any longer (use to_text instead)
* made an aliases to_pem as to_s
diff --git a/ossl_bn.c b/ossl_bn.c
index 0f39458..7265d93 100644
--- a/ossl_bn.c
+++ b/ossl_bn.c
@@ -68,7 +68,6 @@ ossl_bn_get_BIGNUM(VALUE obj)
static VALUE
ossl_bn_s_new(int argc, VALUE *argv, VALUE klass)
{
- BIGNUM *bn = NULL;
VALUE obj;
obj = ossl_bn_new(NULL);
@@ -78,7 +77,7 @@ ossl_bn_s_new(int argc, VALUE *argv, VALUE klass)
return obj;
}
-#define BIGNUM_FROM(func) \
+#define BIGNUM_FROM_S(func) \
static VALUE \
ossl_bn_from_s_##func(VALUE self, VALUE str) \
{ \
@@ -93,10 +92,10 @@ ossl_bn_s_new(int argc, VALUE *argv, VALUE klass)
} \
return self; \
}
-BIGNUM_FROM(bin);
-BIGNUM_FROM(mpi);
+BIGNUM_FROM_S(bin);
+BIGNUM_FROM_S(mpi);
-#define BIGNUM_FROM2(func) \
+#define BIGNUM_FROM_S2(func) \
static VALUE \
ossl_bn_from_s_##func(VALUE self, VALUE str) \
{ \
@@ -111,11 +110,11 @@ BIGNUM_FROM(mpi);
} \
return self; \
}
-BIGNUM_FROM2(dec);
-BIGNUM_FROM2(hex);
+BIGNUM_FROM_S2(dec);
+BIGNUM_FROM_S2(hex);
static VALUE
-ossl_bn_to_bin(VALUE self)
+ossl_bn_to_s_bin(VALUE self)
{
BIGNUM *bn = NULL;
char *buf = NULL;
@@ -140,7 +139,7 @@ ossl_bn_to_bin(VALUE self)
}
static VALUE
-ossl_bn_to_mpi(VALUE self)
+ossl_bn_to_s_mpi(VALUE self)
{
BIGNUM *bn = NULL;
char *buf = NULL;
@@ -182,8 +181,8 @@ ossl_bn_to_mpi(VALUE self)
\
return str; \
}
-BIGNUM_TO_STR(dec);
-BIGNUM_TO_STR(hex);
+BIGNUM_TO_S(dec);
+BIGNUM_TO_S(hex);
#define BIGNUM_BOOL1(func) \
static VALUE \