summaryrefslogtreecommitdiff
path: root/security/gnupg-idea/files/patch-rsa.c
blob: b61d03dbcca589cd1be4d5d56e508b115610a253 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- rsa.c.orig	Tue May  9 08:21:33 2000
+++ rsa.c	Tue May  9 08:22:16 2000
@@ -64,6 +64,9 @@
 /* end configurable stuff */
 
 
+#ifndef IS_MODULE
+static
+#endif
 const char * const gnupgext_version = "RSA ($Revision: 1.10 $)";
 
 #ifndef DIM
@@ -500,6 +503,9 @@
  *			   31 = integer with available pubkey algorithms
  *		  version = interface version of the function/pointer
  */
+#ifndef IS_MODULE
+static
+#endif
 void *
 gnupgext_enum_func( int what, int *sequence, int *class, int *vers )
 {
@@ -529,4 +535,17 @@
     return ret;
 }
 
+
+#ifndef IS_MODULE
+
+void register_internal_cipher_extension( const char *module_id,
+			      void * (*enumfunc)(int, int*, int*, int*) );
+
+void
+rsa_constructor(void)
+{
+    register_internal_cipher_extension( gnupgext_version,
+					gnupgext_enum_func );
+}
+#endif