aboutsummaryrefslogtreecommitdiffstats
path: root/converters/dumpasn1/files
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2005-11-15 19:18:29 +0800
committerAlex Dupre <ale@FreeBSD.org>2005-11-15 19:18:29 +0800
commitdb0ed6f661db45a3e4c4db78da79d9fde1dc1a3b (patch)
tree5024373cf416616f42f761a3b40e5cbcf738d537 /converters/dumpasn1/files
parentd93fa7944623ff008561239e3f02641a6467f8d9 (diff)
downloadfreebsd-ports-gnome-db0ed6f661db45a3e4c4db78da79d9fde1dc1a3b.tar.gz
freebsd-ports-gnome-db0ed6f661db45a3e4c4db78da79d9fde1dc1a3b.tar.zst
freebsd-ports-gnome-db0ed6f661db45a3e4c4db78da79d9fde1dc1a3b.zip
Unbreak and take maintainership.
The code is the same, only ARCH ifdefs are changed and more OID are supported into the configuration file.
Diffstat (limited to 'converters/dumpasn1/files')
-rw-r--r--converters/dumpasn1/files/patch-ab34
-rw-r--r--converters/dumpasn1/files/patch-dumpasn1.c25
2 files changed, 25 insertions, 34 deletions
diff --git a/converters/dumpasn1/files/patch-ab b/converters/dumpasn1/files/patch-ab
deleted file mode 100644
index 94cec25b01c7..000000000000
--- a/converters/dumpasn1/files/patch-ab
+++ /dev/null
@@ -1,34 +0,0 @@
---- dumpasn1.c.orig Sat Dec 14 15:13:32 2002
-+++ dumpasn1.c Sat Dec 14 15:15:24 2002
-@@ -297,11 +297,13 @@
- beginning with a '$' uses the appropriate environment variable. In
- addition under Unix we also walk down $PATH looking for it */
-
-+#ifndef CONFIG_NAME
- #ifdef __TANDEM_NSK__
- #define CONFIG_NAME "asn1cfg"
- #else
- #define CONFIG_NAME "dumpasn1.cfg"
- #endif /* __TANDEM_NSK__ */
-+#endif
-
- #if defined( __TANDEM_NSK__ )
-
-@@ -1215,14 +1217,14 @@
- {
- lineLength++;
- i++; /* We've read two characters for a wchar_t */
--#if defined( __WIN32__ ) || ( defined( __UNIX__ ) && !defined( __MACH__ ) )
-+#if defined( __WIN32__ ) || ( !( defined( __FreeBSD__ ) && __FreeBSD__ < 5 ) && defined( __UNIX__ ) && !defined( __MACH__ ) )
- wprintf( L"%c", wCh );
- #else
- /* This could use some improvement */
-- #ifndef __MACH__
-+ #if !defined( __MACH__ ) && !defined( __FreeBSD__ )
- for( p = outBuf; *p != '\0'; p++ )
- *p = asciiToEbcdic( *p );
-- #endif /* OS X */
-+ #endif /* OS X || FreeBSD */
- fprintf( output, "%s", outBuf );
- #endif /* OS-specific charset handling */
- fPos += 2;
diff --git a/converters/dumpasn1/files/patch-dumpasn1.c b/converters/dumpasn1/files/patch-dumpasn1.c
new file mode 100644
index 000000000000..bd4d367d9de7
--- /dev/null
+++ b/converters/dumpasn1/files/patch-dumpasn1.c
@@ -0,0 +1,25 @@
+--- dumpasn1.c.orig Tue Nov 15 12:12:53 2005
++++ dumpasn1.c Tue Nov 15 12:13:06 2005
+@@ -297,11 +297,13 @@
+ beginning with a '$' uses the appropriate environment variable. In
+ addition under Unix we also walk down $PATH looking for it */
+
++#ifndef CONFIG_NAME
+ #ifdef __TANDEM_NSK__
+ #define CONFIG_NAME "asn1cfg"
+ #else
+ #define CONFIG_NAME "dumpasn1.cfg"
+ #endif /* __TANDEM_NSK__ */
++#endif
+
+ #if defined( __TANDEM_NSK__ )
+
+@@ -1215,7 +1217,7 @@
+ lineLength++;
+ i++; /* We've read two characters for a wchar_t */
+ #if defined( __WIN32__ ) || \
+- ( defined( __UNIX__ ) && !( defined( __MACH__ ) || defined( __OpenBSD__ ) ) )
++ ( defined( __UNIX__ ) && !( defined( __FreeBSD__ ) && __FreeBSD__ < 5 ) && !( defined( __MACH__ ) || defined( __OpenBSD__ ) ) )
+
+ wprintf( L"%c", wCh );
+ #else