diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2002-10-08 10:13:51 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2002-10-08 10:13:51 +0000 |
commit | 7bd278072d3908a95778746382aad30b7d355374 (patch) | |
tree | f1ac1d932e7648e12c6ca8b29594148dcb46f5ae /security/ruby-cast_256/files/patch-rcast_256.cc | |
parent | Use bzip'ed distfile like other gnome ports do. (diff) |
Add ruby-cast_256, a Ruby extension library which implements CAST-256
encryption.
Notes
Notes:
svn path=/head/; revision=67619
Diffstat (limited to 'security/ruby-cast_256/files/patch-rcast_256.cc')
-rw-r--r-- | security/ruby-cast_256/files/patch-rcast_256.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/security/ruby-cast_256/files/patch-rcast_256.cc b/security/ruby-cast_256/files/patch-rcast_256.cc new file mode 100644 index 000000000000..b50d62eec7db --- /dev/null +++ b/security/ruby-cast_256/files/patch-rcast_256.cc @@ -0,0 +1,18 @@ +--- rcast_256.cc.orig Sun May 23 15:26:24 1999 ++++ rcast_256.cc Tue Oct 8 18:46:29 2002 +@@ -107,12 +107,12 @@ + }
+
+
+-extern "C" EXTERN void Init_rcast_256(void){
++extern "C" void Init_rcast_256(void){
+ VALUE mCAST_256 = rb_define_module("RCAST_256");
+
+ rb_define_const(mCAST_256, "ENCRYPT", INT2FIX(ENCRYPT) );
+ rb_define_const(mCAST_256, "DECRYPT", INT2FIX(DECRYPT) );
+
+- rb_define_module_function(mCAST_256, "set_key",(unsigned long (__cdecl *)(void)) set_key ,1);
+- rb_define_module_function(mCAST_256, "crypt_block",(unsigned long (__cdecl *)(void)) crypt_block ,3);
++ rb_define_module_function(mCAST_256, "set_key",(unsigned long (__cdecl *)(...)) set_key ,1);
++ rb_define_module_function(mCAST_256, "crypt_block",(unsigned long (__cdecl *)(...)) crypt_block ,3);
+ }
|