Permalink
Browse files

* Supporting MacOS X.

        "Stefan H. Holek" <stefan>
* Catching up to 2440bis-07.
        "Stefan H. Holek" <stefan>
* A bug fix of old_Public_Key_Packet.
        Shigeru NAKAMURA <s-nakamu>
  • Loading branch information...
kazu-yamamoto committed Feb 19, 2010
1 parent c67ae97 commit b9df9b142c0f606a1aa5f5b0a09ad1634dd6695b
Showing with 3,704 additions and 729 deletions.
  1. +9 −0 CHANGES
  2. +4 −4 README
  3. +53 −0 autotime.h
  4. +16 −0 config.h.in
  5. +3,570 −683 configure
  6. +5 −0 configure.in
  7. +1 −1 data/enc1.res
  8. +1 −1 data/gpg1.res
  9. +2 −2 data/gpg2.res
  10. +1 −1 data/gpg3.res
  11. +4 −4 data/pub.res
  12. +3 −3 data/pub1.res
  13. +1 −1 data/sig.res
  14. +2 −2 data/sig1.res
  15. +2 −2 data/sig3.res
  16. +2 −2 keys.c
  17. +8 −8 packet.c
  18. +1 −1 pgpdump.c
  19. +1 −1 pgpdump.h
  20. +3 −0 signature.c
  21. +1 −1 subfunc.c
  22. +14 −12 types.c
View
@@ -1,5 +1,14 @@
Change Log
+0.18 2003/05/20
+
+* Supporting MacOS X.
+ "Stefan H. Holek" <stefan>
+* Catching up to 2440bis-07.
+ "Stefan H. Holek" <stefan>
+* A bug fix of old_Public_Key_Packet.
+ Shigeru NAKAMURA <s-nakamu>
+
0.17 2002/06/28
* Defining the SHA-1 hash for Secret Key Packet.
View
8 README
@@ -1,7 +1,7 @@
pgpdump: a PGP packet visualizer
Kazu Yamamoto <kazu@iijlab.net>
- Dec 6, 2001
+ May 20, 2003
<Overview>
@@ -12,13 +12,14 @@ of OpenPGP (RFC 2440 + bis) and PGP version 2 (RFC 1991).
Here is an example:
% pgpdump data/sig1
+
Old: Marker Packet(tag 10)(3 bytes)
String - ...
New: One-Pass Signature Packet(tag 4)(13 bytes)
New version(3)
Sig type - Signature of a binary document(0x00).
Hash alg - SHA1(hash 2)
- Pub alg - DSA Digital Signature Standard(pub 17)
+ Pub alg - DSA Digital Signature Algorithm(pub 17)
Key ID - 0xA79778E247B63037
Next packet - other than one pass signature
New: Signature Packet(tag 2)(63 bytes)
@@ -27,14 +28,13 @@ Here is an example:
Sig type - Signature of a binary document(0x00).
Creation time - Fri Nov 27 22:35:02 JST 1998
Key ID - 0xA79778E247B63037
- Pub alg - DSA Digital Signature Standard(pub 17)
+ Pub alg - DSA Digital Signature Algorithm(pub 17)
Hash alg - SHA1(hash 2)
Hash left 2 bytes - 8f 82
DSA r(160 bits) - ...
DSA s(157 bits) - ...
-> hash(160 bits)
-
<Installation>
Take the following steps to install "pgpdump".
View
@@ -0,0 +1,53 @@
+/*
+ * autotime.h
+ *
+ * The code here tries its best to provide access to struct tm and the
+ * timezone name.
+ *
+ * In addition to including time.h (and sys/time.h), autotime.h defines the
+ * macro tm_zone() that may be used to get the timezone name given a
+ * struct tm pointer.
+ *
+ * Requires the following configure.in macros:
+ * AC_CHECK_HEADERS(sys/time.h)
+ * AC_HEADER_TIME
+ * AC_STRUCT_TM
+ * AC_STRUCT_TIMEZONE
+ *
+ * Also see:
+ * http://www.lns.cornell.edu/public/COMP/info/autoconf/autoconf_4.html#SEC32
+ */
+
+#ifndef _AUTOTIME_H_
+#define _AUTOTIME_H_
+
+#include "config.h"
+
+#if TM_IN_SYS_TIME /* struct tm is not in time.h ... */
+ #if HAVE_SYS_TIME_H
+ #if TIME_WITH_SYS_TIME
+ #include <sys/time.h>
+ #include <time.h>
+ #else
+ #include <sys/time.h> /* Supposedly includes time.h */
+ #endif
+ #else
+ #include <time.h> /* No struct tm in time.h and no sys/time.h ??? */
+ #endif
+#else
+ #include <time.h>
+#endif
+
+#if HAVE_TM_ZONE
+ #define tm_zone(tm) (tm->tm_zone)
+#elif HAVE_TZNAME
+ #define tm_zone(tm) (tzname[tm->tm_isdst])
+#else
+ #ifndef tzname /* Don't step on macro (SGI) */
+ extern char* tzname[]; /* RS6000 doesn't like **tzname */
+ #endif
+ #define tm_zone(tm) (tzname[tm->tm_isdst])
+#endif
+
+#endif /* _AUTOTIME_H_ */
+
View
@@ -1,8 +1,24 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */
+/* Define if your struct tm has tm_zone. */
+#undef HAVE_TM_ZONE
+
+/* Define if you don't have tm_zone but do have the external array
+ tzname. */
+#undef HAVE_TZNAME
+
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
+/* Define if you can safely include both <sys/time.h> and <time.h>. */
+#undef TIME_WITH_SYS_TIME
+
+/* Define if your <sys/time.h> declares struct tm. */
+#undef TM_IN_SYS_TIME
+
+/* Define if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
Oops, something went wrong.

0 comments on commit b9df9b1

Please sign in to comment.