Catch up the JSON routines being in their own library. Use the JSON routines to return all the text as a JSON-encoded string for all keys and sigs which are returned.diff -r1.3 -r1.4 src/crypto/external/bsd/netpgp/dist/include/Makefile.in
(agc)
--- src/crypto/external/bsd/netpgp/dist/include/Makefile.in 2009/06/10 00:38:09 1.3
+++ src/crypto/external/bsd/netpgp/dist/include/Makefile.in 2010/08/07 04:16:40 1.4
@@ -26,27 +26,28 @@ INSTALL_HEADER = $(INSTALL_DATA) | @@ -26,27 +26,28 @@ INSTALL_HEADER = $(INSTALL_DATA) | |||
26 | transform = $(program_transform_name) | 26 | transform = $(program_transform_name) | |
27 | NORMAL_INSTALL = : | 27 | NORMAL_INSTALL = : | |
28 | PRE_INSTALL = : | 28 | PRE_INSTALL = : | |
29 | POST_INSTALL = : | 29 | POST_INSTALL = : | |
30 | NORMAL_UNINSTALL = : | 30 | NORMAL_UNINSTALL = : | |
31 | PRE_UNINSTALL = : | 31 | PRE_UNINSTALL = : | |
32 | POST_UNINSTALL = : | 32 | POST_UNINSTALL = : | |
33 | build_triplet = @build@ | 33 | build_triplet = @build@ | |
34 | host_triplet = @host@ | 34 | host_triplet = @host@ | |
35 | subdir = include | 35 | subdir = include | |
36 | DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \ | 36 | DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \ | |
37 | $(srcdir)/Makefile.in | 37 | $(srcdir)/Makefile.in | |
38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
39 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | 39 | am__aclocal_m4_deps = $(top_srcdir)/ax_check_openssl.m4 \ | |
40 | $(top_srcdir)/configure.ac | |||
40 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 41 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
41 | $(ACLOCAL_M4) | 42 | $(ACLOCAL_M4) | |
42 | mkinstalldirs = $(install_sh) -d | 43 | mkinstalldirs = $(install_sh) -d | |
43 | CONFIG_HEADER = $(top_builddir)/src/lib/config.h | 44 | CONFIG_HEADER = $(top_builddir)/src/lib/config.h | |
44 | CONFIG_CLEAN_FILES = | 45 | CONFIG_CLEAN_FILES = | |
45 | SOURCES = | 46 | SOURCES = | |
46 | DIST_SOURCES = | 47 | DIST_SOURCES = | |
47 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | 48 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
48 | am__vpath_adj = case $$p in \ | 49 | am__vpath_adj = case $$p in \ | |
49 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | 50 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
50 | *) f=$$p;; \ | 51 | *) f=$$p;; \ | |
51 | esac; | 52 | esac; | |
52 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | 53 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | |
@@ -60,78 +61,84 @@ ACLOCAL = @ACLOCAL@ | @@ -60,78 +61,84 @@ ACLOCAL = @ACLOCAL@ | |||
60 | AMTAR = @AMTAR@ | 61 | AMTAR = @AMTAR@ | |
61 | AR = @AR@ | 62 | AR = @AR@ | |
62 | AUTOCONF = @AUTOCONF@ | 63 | AUTOCONF = @AUTOCONF@ | |
63 | AUTOHEADER = @AUTOHEADER@ | 64 | AUTOHEADER = @AUTOHEADER@ | |
64 | AUTOM4TE = @AUTOM4TE@ | 65 | AUTOM4TE = @AUTOM4TE@ | |
65 | AUTOMAKE = @AUTOMAKE@ | 66 | AUTOMAKE = @AUTOMAKE@ | |
66 | AWK = @AWK@ | 67 | AWK = @AWK@ | |
67 | CANONICAL_HOST = @CANONICAL_HOST@ | 68 | CANONICAL_HOST = @CANONICAL_HOST@ | |
68 | CC = @CC@ | 69 | CC = @CC@ | |
69 | CCDEPMODE = @CCDEPMODE@ | 70 | CCDEPMODE = @CCDEPMODE@ | |
70 | CFLAGS = @CFLAGS@ | 71 | CFLAGS = @CFLAGS@ | |
71 | CPP = @CPP@ | 72 | CPP = @CPP@ | |
72 | CPPFLAGS = @CPPFLAGS@ | 73 | CPPFLAGS = @CPPFLAGS@ | |
73 | CXX = @CXX@ | |||
74 | CXXCPP = @CXXCPP@ | |||
75 | CXXDEPMODE = @CXXDEPMODE@ | |||
76 | CXXFLAGS = @CXXFLAGS@ | |||
77 | CYGPATH_W = @CYGPATH_W@ | 74 | CYGPATH_W = @CYGPATH_W@ | |
78 | DEFS = @DEFS@ | 75 | DEFS = @DEFS@ | |
79 | DEPDIR = @DEPDIR@ | 76 | DEPDIR = @DEPDIR@ | |
80 | ECHO = @ECHO@ | 77 | DSYMUTIL = @DSYMUTIL@ | |
78 | DUMPBIN = @DUMPBIN@ | |||
81 | ECHO_C = @ECHO_C@ | 79 | ECHO_C = @ECHO_C@ | |
82 | ECHO_N = @ECHO_N@ | 80 | ECHO_N = @ECHO_N@ | |
83 | ECHO_T = @ECHO_T@ | 81 | ECHO_T = @ECHO_T@ | |
84 | EGREP = @EGREP@ | 82 | EGREP = @EGREP@ | |
85 | EXEEXT = @EXEEXT@ | 83 | EXEEXT = @EXEEXT@ | |
86 | F77 = @F77@ | 84 | FGREP = @FGREP@ | |
87 | FFLAGS = @FFLAGS@ | |||
88 | GREP = @GREP@ | 85 | GREP = @GREP@ | |
89 | INSTALL = @INSTALL@ | 86 | INSTALL = @INSTALL@ | |
90 | INSTALL_DATA = @INSTALL_DATA@ | 87 | INSTALL_DATA = @INSTALL_DATA@ | |
91 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 88 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
92 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | 89 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
93 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | 90 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
91 | LD = @LD@ | |||
94 | LDFLAGS = @LDFLAGS@ | 92 | LDFLAGS = @LDFLAGS@ | |
95 | LIBOBJS = @LIBOBJS@ | 93 | LIBOBJS = @LIBOBJS@ | |
96 | LIBS = @LIBS@ | 94 | LIBS = @LIBS@ | |
97 | LIBTOOL = @LIBTOOL@ | 95 | LIBTOOL = @LIBTOOL@ | |
96 | LIPO = @LIPO@ | |||
98 | LN_S = @LN_S@ | 97 | LN_S = @LN_S@ | |
99 | LTLIBOBJS = @LTLIBOBJS@ | 98 | LTLIBOBJS = @LTLIBOBJS@ | |
100 | MAINT = @MAINT@ | 99 | MAINT = @MAINT@ | |
101 | MAKEINFO = @MAKEINFO@ | 100 | MAKEINFO = @MAKEINFO@ | |
102 | MKDIR_P = @MKDIR_P@ | 101 | MKDIR_P = @MKDIR_P@ | |
102 | NM = @NM@ | |||
103 | NMEDIT = @NMEDIT@ | |||
104 | OBJDUMP = @OBJDUMP@ | |||
103 | OBJEXT = @OBJEXT@ | 105 | OBJEXT = @OBJEXT@ | |
106 | OPENSSL_INCLUDES = @OPENSSL_INCLUDES@ | |||
107 | OPENSSL_LDFLAGS = @OPENSSL_LDFLAGS@ | |||
108 | OPENSSL_LIBS = @OPENSSL_LIBS@ | |||
109 | OTOOL = @OTOOL@ | |||
110 | OTOOL64 = @OTOOL64@ | |||
104 | PACKAGE = @PACKAGE@ | 111 | PACKAGE = @PACKAGE@ | |
105 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | 112 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
106 | PACKAGE_NAME = @PACKAGE_NAME@ | 113 | PACKAGE_NAME = @PACKAGE_NAME@ | |
107 | PACKAGE_STRING = @PACKAGE_STRING@ | 114 | PACKAGE_STRING = @PACKAGE_STRING@ | |
108 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | 115 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
109 | PACKAGE_VERSION = @PACKAGE_VERSION@ | 116 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
110 | PATH_SEPARATOR = @PATH_SEPARATOR@ | 117 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
118 | PKG_CONFIG = @PKG_CONFIG@ | |||
111 | RANLIB = @RANLIB@ | 119 | RANLIB = @RANLIB@ | |
112 | SED = @SED@ | 120 | SED = @SED@ | |
113 | SET_MAKE = @SET_MAKE@ | 121 | SET_MAKE = @SET_MAKE@ | |
114 | SHELL = @SHELL@ | 122 | SHELL = @SHELL@ | |
115 | STRIP = @STRIP@ | 123 | STRIP = @STRIP@ | |
116 | VERSION = @VERSION@ | 124 | VERSION = @VERSION@ | |
117 | WARNCFLAGS = @WARNCFLAGS@ | 125 | WARNCFLAGS = @WARNCFLAGS@ | |
118 | abs_builddir = @abs_builddir@ | 126 | abs_builddir = @abs_builddir@ | |
119 | abs_srcdir = @abs_srcdir@ | 127 | abs_srcdir = @abs_srcdir@ | |
120 | abs_top_builddir = @abs_top_builddir@ | 128 | abs_top_builddir = @abs_top_builddir@ | |
121 | abs_top_srcdir = @abs_top_srcdir@ | 129 | abs_top_srcdir = @abs_top_srcdir@ | |
122 | ac_ct_CC = @ac_ct_CC@ | 130 | ac_ct_CC = @ac_ct_CC@ | |
123 | ac_ct_CXX = @ac_ct_CXX@ | 131 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | |
124 | ac_ct_F77 = @ac_ct_F77@ | |||
125 | am__include = @am__include@ | 132 | am__include = @am__include@ | |
126 | am__leading_dot = @am__leading_dot@ | 133 | am__leading_dot = @am__leading_dot@ | |
127 | am__quote = @am__quote@ | 134 | am__quote = @am__quote@ | |
128 | am__tar = @am__tar@ | 135 | am__tar = @am__tar@ | |
129 | am__untar = @am__untar@ | 136 | am__untar = @am__untar@ | |
130 | bindir = @bindir@ | 137 | bindir = @bindir@ | |
131 | build = @build@ | 138 | build = @build@ | |
132 | build_alias = @build_alias@ | 139 | build_alias = @build_alias@ | |
133 | build_cpu = @build_cpu@ | 140 | build_cpu = @build_cpu@ | |
134 | build_os = @build_os@ | 141 | build_os = @build_os@ | |
135 | build_vendor = @build_vendor@ | 142 | build_vendor = @build_vendor@ | |
136 | builddir = @builddir@ | 143 | builddir = @builddir@ | |
137 | datadir = @datadir@ | 144 | datadir = @datadir@ | |
@@ -142,26 +149,27 @@ exec_prefix = @exec_prefix@ | @@ -142,26 +149,27 @@ exec_prefix = @exec_prefix@ | |||
142 | host = @host@ | 149 | host = @host@ | |
143 | host_alias = @host_alias@ | 150 | host_alias = @host_alias@ | |
144 | host_cpu = @host_cpu@ | 151 | host_cpu = @host_cpu@ | |
145 | host_os = @host_os@ | 152 | host_os = @host_os@ | |
146 | host_vendor = @host_vendor@ | 153 | host_vendor = @host_vendor@ | |
147 | htmldir = @htmldir@ | 154 | htmldir = @htmldir@ | |
148 | includedir = @includedir@ | 155 | includedir = @includedir@ | |
149 | infodir = @infodir@ | 156 | infodir = @infodir@ | |
150 | install_sh = @install_sh@ | 157 | install_sh = @install_sh@ | |
151 | libdir = @libdir@ | 158 | libdir = @libdir@ | |
152 | libexecdir = @libexecdir@ | 159 | libexecdir = @libexecdir@ | |
153 | localedir = @localedir@ | 160 | localedir = @localedir@ | |
154 | localstatedir = @localstatedir@ | 161 | localstatedir = @localstatedir@ | |
162 | lt_ECHO = @lt_ECHO@ | |||
155 | mandir = @mandir@ | 163 | mandir = @mandir@ | |
156 | mkdir_p = @mkdir_p@ | 164 | mkdir_p = @mkdir_p@ | |
157 | oldincludedir = @oldincludedir@ | 165 | oldincludedir = @oldincludedir@ | |
158 | pdfdir = @pdfdir@ | 166 | pdfdir = @pdfdir@ | |
159 | prefix = @prefix@ | 167 | prefix = @prefix@ | |
160 | program_transform_name = @program_transform_name@ | 168 | program_transform_name = @program_transform_name@ | |
161 | psdir = @psdir@ | 169 | psdir = @psdir@ | |
162 | sbindir = @sbindir@ | 170 | sbindir = @sbindir@ | |
163 | sharedstatedir = @sharedstatedir@ | 171 | sharedstatedir = @sharedstatedir@ | |
164 | srcdir = @srcdir@ | 172 | srcdir = @srcdir@ | |
165 | sysconfdir = @sysconfdir@ | 173 | sysconfdir = @sysconfdir@ | |
166 | target_alias = @target_alias@ | 174 | target_alias = @target_alias@ | |
167 | top_build_prefix = @top_build_prefix@ | 175 | top_build_prefix = @top_build_prefix@ |
--- src/crypto/external/bsd/netpgp/dist/include/netpgp.h 2010/03/16 04:14:29 1.18
+++ src/crypto/external/bsd/netpgp/dist/include/netpgp.h 2010/08/07 04:16:40 1.19
@@ -64,40 +64,42 @@ const char *netpgp_get_info(const char * | @@ -64,40 +64,42 @@ const char *netpgp_get_info(const char * | |||
64 | int netpgp_list_packets(netpgp_t *, char *, int, char *); | 64 | int netpgp_list_packets(netpgp_t *, char *, int, char *); | |
65 | 65 | |||
66 | /* variables */ | 66 | /* variables */ | |
67 | int netpgp_setvar(netpgp_t *, const char *, const char *); | 67 | int netpgp_setvar(netpgp_t *, const char *, const char *); | |
68 | char *netpgp_getvar(netpgp_t *, const char *); | 68 | char *netpgp_getvar(netpgp_t *, const char *); | |
69 | int netpgp_incvar(netpgp_t *, const char *, const int); | 69 | int netpgp_incvar(netpgp_t *, const char *, const int); | |
70 | int netpgp_unsetvar(netpgp_t *, const char *); | 70 | int netpgp_unsetvar(netpgp_t *, const char *); | |
71 | 71 | |||
72 | /* set home directory information */ | 72 | /* set home directory information */ | |
73 | int netpgp_set_homedir(netpgp_t *, char *, const char *, const int); | 73 | int netpgp_set_homedir(netpgp_t *, char *, const char *, const int); | |
74 | 74 | |||
75 | /* key management */ | 75 | /* key management */ | |
76 | int netpgp_list_keys(netpgp_t *, const int); | 76 | int netpgp_list_keys(netpgp_t *, const int); | |
77 | int netpgp_list_keys_json(netpgp_t *, char **, const int); | |||
77 | int netpgp_find_key(netpgp_t *, char *); | 78 | int netpgp_find_key(netpgp_t *, char *); | |
78 | char *netpgp_get_key(netpgp_t *, const char *, const char *); | 79 | char *netpgp_get_key(netpgp_t *, const char *, const char *); | |
79 | char *netpgp_export_key(netpgp_t *, char *); | 80 | char *netpgp_export_key(netpgp_t *, char *); | |
80 | int netpgp_import_key(netpgp_t *, char *); | 81 | int netpgp_import_key(netpgp_t *, char *); | |
81 | int netpgp_generate_key(netpgp_t *, char *, int); | 82 | int netpgp_generate_key(netpgp_t *, char *, int); | |
82 | 83 | |||
83 | /* file management */ | 84 | /* file management */ | |
84 | int netpgp_encrypt_file(netpgp_t *, const char *, const char *, char *, int); | 85 | int netpgp_encrypt_file(netpgp_t *, const char *, const char *, char *, int); | |
85 | int netpgp_decrypt_file(netpgp_t *, const char *, char *, int); | 86 | int netpgp_decrypt_file(netpgp_t *, const char *, char *, int); | |
86 | int netpgp_sign_file(netpgp_t *, const char *, const char *, char *, int, int, int); | 87 | int netpgp_sign_file(netpgp_t *, const char *, const char *, char *, int, int, int); | |
87 | int netpgp_verify_file(netpgp_t *, const char *, const char *, int); | 88 | int netpgp_verify_file(netpgp_t *, const char *, const char *, int); | |
88 | 89 | |||
89 | /* memory signing and encryption */ | 90 | /* memory signing and encryption */ | |
90 | int netpgp_sign_memory(netpgp_t *, const char *, char *, size_t, char *, size_t, const unsigned, const unsigned); | 91 | int netpgp_sign_memory(netpgp_t *, const char *, char *, size_t, char *, size_t, const unsigned, const unsigned); | |
91 | int netpgp_verify_memory(netpgp_t *, const void *, const size_t, void *, size_t, const int); | 92 | int netpgp_verify_memory(netpgp_t *, const void *, const size_t, void *, size_t, const int); | |
92 | int netpgp_encrypt_memory(netpgp_t *, const char *, void *, const size_t, char *, size_t, int); | 93 | int netpgp_encrypt_memory(netpgp_t *, const char *, void *, const size_t, char *, size_t, int); | |
93 | int netpgp_decrypt_memory(netpgp_t *, const void *, const size_t, char *, size_t, const int); | 94 | int netpgp_decrypt_memory(netpgp_t *, const void *, const size_t, char *, size_t, const int); | |
94 | 95 | |||
95 | /* match and hkp-related functions */ | 96 | /* match and hkp-related functions */ | |
97 | int netpgp_match_keys_json(netpgp_t *, char **, char *, const char *, const int); | |||
96 | int netpgp_match_keys(netpgp_t *, char *, const char *, void *, const int); | 98 | int netpgp_match_keys(netpgp_t *, char *, const char *, void *, const int); | |
97 | int netpgp_match_pubkeys(netpgp_t *, char *, void *); | 99 | int netpgp_match_pubkeys(netpgp_t *, char *, void *); | |
98 | 100 | |||
99 | int netpgp_validate_sigs(netpgp_t *); | 101 | int netpgp_validate_sigs(netpgp_t *); | |
100 | 102 | |||
101 | __END_DECLS | 103 | __END_DECLS | |
102 | 104 | |||
103 | #endif /* !NETPGP_H_ */ | 105 | #endif /* !NETPGP_H_ */ |
--- src/crypto/external/bsd/netpgp/dist/src/Makefile.am 2009/06/10 00:38:09 1.4
+++ src/crypto/external/bsd/netpgp/dist/src/Makefile.am 2010/08/07 04:16:40 1.5
@@ -1,3 +1,3 @@ | @@ -1,3 +1,3 @@ | |||
1 | ## $NetBSD: Makefile.am,v 1.4 2009/06/10 00:38:09 agc Exp $ | 1 | ## $NetBSD: Makefile.am,v 1.5 2010/08/07 04:16:40 agc Exp $ | |
2 | 2 | |||
3 | SUBDIRS = lib netpgp netpgpkeys netpgpverify | 3 | SUBDIRS = libmj lib netpgp netpgpkeys netpgpverify |
--- src/crypto/external/bsd/netpgp/dist/src/Makefile.in 2009/06/10 00:38:09 1.3
+++ src/crypto/external/bsd/netpgp/dist/src/Makefile.in 2010/08/07 04:16:40 1.4
@@ -24,27 +24,28 @@ install_sh_SCRIPT = $(install_sh) -c | @@ -24,27 +24,28 @@ install_sh_SCRIPT = $(install_sh) -c | |||
24 | INSTALL_HEADER = $(INSTALL_DATA) | 24 | INSTALL_HEADER = $(INSTALL_DATA) | |
25 | transform = $(program_transform_name) | 25 | transform = $(program_transform_name) | |
26 | NORMAL_INSTALL = : | 26 | NORMAL_INSTALL = : | |
27 | PRE_INSTALL = : | 27 | PRE_INSTALL = : | |
28 | POST_INSTALL = : | 28 | POST_INSTALL = : | |
29 | NORMAL_UNINSTALL = : | 29 | NORMAL_UNINSTALL = : | |
30 | PRE_UNINSTALL = : | 30 | PRE_UNINSTALL = : | |
31 | POST_UNINSTALL = : | 31 | POST_UNINSTALL = : | |
32 | build_triplet = @build@ | 32 | build_triplet = @build@ | |
33 | host_triplet = @host@ | 33 | host_triplet = @host@ | |
34 | subdir = src | 34 | subdir = src | |
35 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | 35 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | |
36 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 36 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
37 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | 37 | am__aclocal_m4_deps = $(top_srcdir)/ax_check_openssl.m4 \ | |
38 | $(top_srcdir)/configure.ac | |||
38 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 39 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
39 | $(ACLOCAL_M4) | 40 | $(ACLOCAL_M4) | |
40 | mkinstalldirs = $(install_sh) -d | 41 | mkinstalldirs = $(install_sh) -d | |
41 | CONFIG_HEADER = $(top_builddir)/src/lib/config.h | 42 | CONFIG_HEADER = $(top_builddir)/src/lib/config.h | |
42 | CONFIG_CLEAN_FILES = | 43 | CONFIG_CLEAN_FILES = | |
43 | SOURCES = | 44 | SOURCES = | |
44 | DIST_SOURCES = | 45 | DIST_SOURCES = | |
45 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | 46 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
46 | html-recursive info-recursive install-data-recursive \ | 47 | html-recursive info-recursive install-data-recursive \ | |
47 | install-dvi-recursive install-exec-recursive \ | 48 | install-dvi-recursive install-exec-recursive \ | |
48 | install-html-recursive install-info-recursive \ | 49 | install-html-recursive install-info-recursive \ | |
49 | install-pdf-recursive install-ps-recursive install-recursive \ | 50 | install-pdf-recursive install-ps-recursive install-recursive \ | |
50 | installcheck-recursive installdirs-recursive pdf-recursive \ | 51 | installcheck-recursive installdirs-recursive pdf-recursive \ | |
@@ -59,78 +60,84 @@ ACLOCAL = @ACLOCAL@ | @@ -59,78 +60,84 @@ ACLOCAL = @ACLOCAL@ | |||
59 | AMTAR = @AMTAR@ | 60 | AMTAR = @AMTAR@ | |
60 | AR = @AR@ | 61 | AR = @AR@ | |
61 | AUTOCONF = @AUTOCONF@ | 62 | AUTOCONF = @AUTOCONF@ | |
62 | AUTOHEADER = @AUTOHEADER@ | 63 | AUTOHEADER = @AUTOHEADER@ | |
63 | AUTOM4TE = @AUTOM4TE@ | 64 | AUTOM4TE = @AUTOM4TE@ | |
64 | AUTOMAKE = @AUTOMAKE@ | 65 | AUTOMAKE = @AUTOMAKE@ | |
65 | AWK = @AWK@ | 66 | AWK = @AWK@ | |
66 | CANONICAL_HOST = @CANONICAL_HOST@ | 67 | CANONICAL_HOST = @CANONICAL_HOST@ | |
67 | CC = @CC@ | 68 | CC = @CC@ | |
68 | CCDEPMODE = @CCDEPMODE@ | 69 | CCDEPMODE = @CCDEPMODE@ | |
69 | CFLAGS = @CFLAGS@ | 70 | CFLAGS = @CFLAGS@ | |
70 | CPP = @CPP@ | 71 | CPP = @CPP@ | |
71 | CPPFLAGS = @CPPFLAGS@ | 72 | CPPFLAGS = @CPPFLAGS@ | |
72 | CXX = @CXX@ | |||
73 | CXXCPP = @CXXCPP@ | |||
74 | CXXDEPMODE = @CXXDEPMODE@ | |||
75 | CXXFLAGS = @CXXFLAGS@ | |||
76 | CYGPATH_W = @CYGPATH_W@ | 73 | CYGPATH_W = @CYGPATH_W@ | |
77 | DEFS = @DEFS@ | 74 | DEFS = @DEFS@ | |
78 | DEPDIR = @DEPDIR@ | 75 | DEPDIR = @DEPDIR@ | |
79 | ECHO = @ECHO@ | 76 | DSYMUTIL = @DSYMUTIL@ | |
77 | DUMPBIN = @DUMPBIN@ | |||
80 | ECHO_C = @ECHO_C@ | 78 | ECHO_C = @ECHO_C@ | |
81 | ECHO_N = @ECHO_N@ | 79 | ECHO_N = @ECHO_N@ | |
82 | ECHO_T = @ECHO_T@ | 80 | ECHO_T = @ECHO_T@ | |
83 | EGREP = @EGREP@ | 81 | EGREP = @EGREP@ | |
84 | EXEEXT = @EXEEXT@ | 82 | EXEEXT = @EXEEXT@ | |
85 | F77 = @F77@ | 83 | FGREP = @FGREP@ | |
86 | FFLAGS = @FFLAGS@ | |||
87 | GREP = @GREP@ | 84 | GREP = @GREP@ | |
88 | INSTALL = @INSTALL@ | 85 | INSTALL = @INSTALL@ | |
89 | INSTALL_DATA = @INSTALL_DATA@ | 86 | INSTALL_DATA = @INSTALL_DATA@ | |
90 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 87 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
91 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | 88 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
92 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | 89 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
90 | LD = @LD@ | |||
93 | LDFLAGS = @LDFLAGS@ | 91 | LDFLAGS = @LDFLAGS@ | |
94 | LIBOBJS = @LIBOBJS@ | 92 | LIBOBJS = @LIBOBJS@ | |
95 | LIBS = @LIBS@ | 93 | LIBS = @LIBS@ | |
96 | LIBTOOL = @LIBTOOL@ | 94 | LIBTOOL = @LIBTOOL@ | |
95 | LIPO = @LIPO@ | |||
97 | LN_S = @LN_S@ | 96 | LN_S = @LN_S@ | |
98 | LTLIBOBJS = @LTLIBOBJS@ | 97 | LTLIBOBJS = @LTLIBOBJS@ | |
99 | MAINT = @MAINT@ | 98 | MAINT = @MAINT@ | |
100 | MAKEINFO = @MAKEINFO@ | 99 | MAKEINFO = @MAKEINFO@ | |
101 | MKDIR_P = @MKDIR_P@ | 100 | MKDIR_P = @MKDIR_P@ | |
101 | NM = @NM@ | |||
102 | NMEDIT = @NMEDIT@ | |||
103 | OBJDUMP = @OBJDUMP@ | |||
102 | OBJEXT = @OBJEXT@ | 104 | OBJEXT = @OBJEXT@ | |
105 | OPENSSL_INCLUDES = @OPENSSL_INCLUDES@ | |||
106 | OPENSSL_LDFLAGS = @OPENSSL_LDFLAGS@ | |||
107 | OPENSSL_LIBS = @OPENSSL_LIBS@ | |||
108 | OTOOL = @OTOOL@ | |||
109 | OTOOL64 = @OTOOL64@ | |||
103 | PACKAGE = @PACKAGE@ | 110 | PACKAGE = @PACKAGE@ | |
104 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | 111 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
105 | PACKAGE_NAME = @PACKAGE_NAME@ | 112 | PACKAGE_NAME = @PACKAGE_NAME@ | |
106 | PACKAGE_STRING = @PACKAGE_STRING@ | 113 | PACKAGE_STRING = @PACKAGE_STRING@ | |
107 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | 114 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
108 | PACKAGE_VERSION = @PACKAGE_VERSION@ | 115 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
109 | PATH_SEPARATOR = @PATH_SEPARATOR@ | 116 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
117 | PKG_CONFIG = @PKG_CONFIG@ | |||
110 | RANLIB = @RANLIB@ | 118 | RANLIB = @RANLIB@ | |
111 | SED = @SED@ | 119 | SED = @SED@ | |
112 | SET_MAKE = @SET_MAKE@ | 120 | SET_MAKE = @SET_MAKE@ | |
113 | SHELL = @SHELL@ | 121 | SHELL = @SHELL@ | |
114 | STRIP = @STRIP@ | 122 | STRIP = @STRIP@ | |
115 | VERSION = @VERSION@ | 123 | VERSION = @VERSION@ | |
116 | WARNCFLAGS = @WARNCFLAGS@ | 124 | WARNCFLAGS = @WARNCFLAGS@ | |
117 | abs_builddir = @abs_builddir@ | 125 | abs_builddir = @abs_builddir@ | |
118 | abs_srcdir = @abs_srcdir@ | 126 | abs_srcdir = @abs_srcdir@ | |
119 | abs_top_builddir = @abs_top_builddir@ | 127 | abs_top_builddir = @abs_top_builddir@ | |
120 | abs_top_srcdir = @abs_top_srcdir@ | 128 | abs_top_srcdir = @abs_top_srcdir@ | |
121 | ac_ct_CC = @ac_ct_CC@ | 129 | ac_ct_CC = @ac_ct_CC@ | |
122 | ac_ct_CXX = @ac_ct_CXX@ | 130 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | |
123 | ac_ct_F77 = @ac_ct_F77@ | |||
124 | am__include = @am__include@ | 131 | am__include = @am__include@ | |
125 | am__leading_dot = @am__leading_dot@ | 132 | am__leading_dot = @am__leading_dot@ | |
126 | am__quote = @am__quote@ | 133 | am__quote = @am__quote@ | |
127 | am__tar = @am__tar@ | 134 | am__tar = @am__tar@ | |
128 | am__untar = @am__untar@ | 135 | am__untar = @am__untar@ | |
129 | bindir = @bindir@ | 136 | bindir = @bindir@ | |
130 | build = @build@ | 137 | build = @build@ | |
131 | build_alias = @build_alias@ | 138 | build_alias = @build_alias@ | |
132 | build_cpu = @build_cpu@ | 139 | build_cpu = @build_cpu@ | |
133 | build_os = @build_os@ | 140 | build_os = @build_os@ | |
134 | build_vendor = @build_vendor@ | 141 | build_vendor = @build_vendor@ | |
135 | builddir = @builddir@ | 142 | builddir = @builddir@ | |
136 | datadir = @datadir@ | 143 | datadir = @datadir@ | |
@@ -141,42 +148,43 @@ exec_prefix = @exec_prefix@ | @@ -141,42 +148,43 @@ exec_prefix = @exec_prefix@ | |||
141 | host = @host@ | 148 | host = @host@ | |
142 | host_alias = @host_alias@ | 149 | host_alias = @host_alias@ | |
143 | host_cpu = @host_cpu@ | 150 | host_cpu = @host_cpu@ | |
144 | host_os = @host_os@ | 151 | host_os = @host_os@ | |
145 | host_vendor = @host_vendor@ | 152 | host_vendor = @host_vendor@ | |
146 | htmldir = @htmldir@ | 153 | htmldir = @htmldir@ | |
147 | includedir = @includedir@ | 154 | includedir = @includedir@ | |
148 | infodir = @infodir@ | 155 | infodir = @infodir@ | |
149 | install_sh = @install_sh@ | 156 | install_sh = @install_sh@ | |
150 | libdir = @libdir@ | 157 | libdir = @libdir@ | |
151 | libexecdir = @libexecdir@ | 158 | libexecdir = @libexecdir@ | |
152 | localedir = @localedir@ | 159 | localedir = @localedir@ | |
153 | localstatedir = @localstatedir@ | 160 | localstatedir = @localstatedir@ | |
161 | lt_ECHO = @lt_ECHO@ | |||
154 | mandir = @mandir@ | 162 | mandir = @mandir@ | |
155 | mkdir_p = @mkdir_p@ | 163 | mkdir_p = @mkdir_p@ | |
156 | oldincludedir = @oldincludedir@ | 164 | oldincludedir = @oldincludedir@ | |
157 | pdfdir = @pdfdir@ | 165 | pdfdir = @pdfdir@ | |
158 | prefix = @prefix@ | 166 | prefix = @prefix@ | |
159 | program_transform_name = @program_transform_name@ | 167 | program_transform_name = @program_transform_name@ | |
160 | psdir = @psdir@ | 168 | psdir = @psdir@ | |
161 | sbindir = @sbindir@ | 169 | sbindir = @sbindir@ | |
162 | sharedstatedir = @sharedstatedir@ | 170 | sharedstatedir = @sharedstatedir@ | |
163 | srcdir = @srcdir@ | 171 | srcdir = @srcdir@ | |
164 | sysconfdir = @sysconfdir@ | 172 | sysconfdir = @sysconfdir@ | |
165 | target_alias = @target_alias@ | 173 | target_alias = @target_alias@ | |
166 | top_build_prefix = @top_build_prefix@ | 174 | top_build_prefix = @top_build_prefix@ | |
167 | top_builddir = @top_builddir@ | 175 | top_builddir = @top_builddir@ | |
168 | top_srcdir = @top_srcdir@ | 176 | top_srcdir = @top_srcdir@ | |
169 | SUBDIRS = lib netpgp netpgpkeys netpgpverify | 177 | SUBDIRS = libmj lib netpgp netpgpkeys netpgpverify | |
170 | all: all-recursive | 178 | all: all-recursive | |
171 | 179 | |||
172 | .SUFFIXES: | 180 | .SUFFIXES: | |
173 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | 181 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | |
174 | @for dep in $?; do \ | 182 | @for dep in $?; do \ | |
175 | case '$(am__configure_deps)' in \ | 183 | case '$(am__configure_deps)' in \ | |
176 | *$$dep*) \ | 184 | *$$dep*) \ | |
177 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | 185 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | |
178 | && exit 0; \ | 186 | && exit 0; \ | |
179 | exit 1;; \ | 187 | exit 1;; \ | |
180 | esac; \ | 188 | esac; \ | |
181 | done; \ | 189 | done; \ | |
182 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ | 190 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ |
--- src/crypto/external/bsd/netpgp/dist/src/lib/Makefile.in 2010/07/26 06:39:43 1.8
+++ src/crypto/external/bsd/netpgp/dist/src/lib/Makefile.in 2010/08/07 04:16:40 1.9
@@ -26,53 +26,53 @@ INSTALL_HEADER = $(INSTALL_DATA) | @@ -26,53 +26,53 @@ INSTALL_HEADER = $(INSTALL_DATA) | |||
26 | transform = $(program_transform_name) | 26 | transform = $(program_transform_name) | |
27 | NORMAL_INSTALL = : | 27 | NORMAL_INSTALL = : | |
28 | PRE_INSTALL = : | 28 | PRE_INSTALL = : | |
29 | POST_INSTALL = : | 29 | POST_INSTALL = : | |
30 | NORMAL_UNINSTALL = : | 30 | NORMAL_UNINSTALL = : | |
31 | PRE_UNINSTALL = : | 31 | PRE_UNINSTALL = : | |
32 | POST_UNINSTALL = : | 32 | POST_UNINSTALL = : | |
33 | build_triplet = @build@ | 33 | build_triplet = @build@ | |
34 | host_triplet = @host@ | 34 | host_triplet = @host@ | |
35 | subdir = src/lib | 35 | subdir = src/lib | |
36 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | 36 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | |
37 | $(srcdir)/Makefile.in $(srcdir)/config.h.in mkinstalldirs | 37 | $(srcdir)/Makefile.in $(srcdir)/config.h.in mkinstalldirs | |
38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
39 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | 39 | am__aclocal_m4_deps = $(top_srcdir)/ax_check_openssl.m4 \ | |
40 | $(top_srcdir)/configure.ac | |||
40 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 41 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
41 | $(ACLOCAL_M4) | 42 | $(ACLOCAL_M4) | |
42 | mkinstalldirs = $(install_sh) -d | 43 | mkinstalldirs = $(install_sh) -d | |
43 | CONFIG_HEADER = config.h | 44 | CONFIG_HEADER = config.h | |
44 | CONFIG_CLEAN_FILES = | 45 | CONFIG_CLEAN_FILES = | |
45 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | 46 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
46 | am__vpath_adj = case $$p in \ | 47 | am__vpath_adj = case $$p in \ | |
47 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | 48 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
48 | *) f=$$p;; \ | 49 | *) f=$$p;; \ | |
49 | esac; | 50 | esac; | |
50 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | 51 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | |
51 | am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(man3dir)" | 52 | am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(man3dir)" | |
52 | libLTLIBRARIES_INSTALL = $(INSTALL) | 53 | libLTLIBRARIES_INSTALL = $(INSTALL) | |
53 | LTLIBRARIES = $(lib_LTLIBRARIES) | 54 | LTLIBRARIES = $(lib_LTLIBRARIES) | |
54 | libnetpgp_la_LIBADD = | 55 | libnetpgp_la_LIBADD = | |
55 | am_libnetpgp_la_OBJECTS = libnetpgp_la-bufgap.lo \ | 56 | am_libnetpgp_la_OBJECTS = libnetpgp_la-bufgap.lo \ | |
56 | libnetpgp_la-compress.lo libnetpgp_la-create.lo \ | 57 | libnetpgp_la-compress.lo libnetpgp_la-create.lo \ | |
57 | libnetpgp_la-crypto.lo libnetpgp_la-fastctype.lo \ | 58 | libnetpgp_la-crypto.lo libnetpgp_la-fastctype.lo \ | |
58 | libnetpgp_la-keyring.lo libnetpgp_la-misc.lo \ | 59 | libnetpgp_la-keyring.lo libnetpgp_la-misc.lo \ | |
59 | libnetpgp_la-mj.lo \ | 60 | libnetpgp_la-mj.lo libnetpgp_la-netpgp.lo \ | |
60 | libnetpgp_la-netpgp.lo libnetpgp_la-openssl_crypto.lo \ | 61 | libnetpgp_la-openssl_crypto.lo libnetpgp_la-packet-parse.lo \ | |
61 | libnetpgp_la-packet-parse.lo libnetpgp_la-packet-print.lo \ | 62 | libnetpgp_la-packet-print.lo libnetpgp_la-packet-show.lo \ | |
62 | libnetpgp_la-packet-show.lo libnetpgp_la-reader.lo \ | 63 | libnetpgp_la-reader.lo libnetpgp_la-signature.lo \ | |
63 | libnetpgp_la-signature.lo libnetpgp_la-ssh2pgp.lo \ | 64 | libnetpgp_la-ssh2pgp.lo libnetpgp_la-symmetric.lo \ | |
64 | libnetpgp_la-symmetric.lo libnetpgp_la-validate.lo \ | 65 | libnetpgp_la-validate.lo libnetpgp_la-writer.lo | |
65 | libnetpgp_la-writer.lo | |||
66 | libnetpgp_la_OBJECTS = $(am_libnetpgp_la_OBJECTS) | 66 | libnetpgp_la_OBJECTS = $(am_libnetpgp_la_OBJECTS) | |
67 | DEFAULT_INCLUDES = -I.@am__isrc@ | 67 | DEFAULT_INCLUDES = -I.@am__isrc@ | |
68 | depcomp = $(SHELL) $(top_srcdir)/buildaux/depcomp | 68 | depcomp = $(SHELL) $(top_srcdir)/buildaux/depcomp | |
69 | am__depfiles_maybe = depfiles | 69 | am__depfiles_maybe = depfiles | |
70 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | 70 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | |
71 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | 71 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
72 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | 72 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
73 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | 73 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | |
74 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | 74 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
75 | CCLD = $(CC) | 75 | CCLD = $(CC) | |
76 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | 76 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
77 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | 77 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | |
78 | $(LDFLAGS) -o $@ | 78 | $(LDFLAGS) -o $@ | |
@@ -88,78 +88,84 @@ ACLOCAL = @ACLOCAL@ | @@ -88,78 +88,84 @@ ACLOCAL = @ACLOCAL@ | |||
88 | AMTAR = @AMTAR@ | 88 | AMTAR = @AMTAR@ | |
89 | AR = @AR@ | 89 | AR = @AR@ | |
90 | AUTOCONF = @AUTOCONF@ | 90 | AUTOCONF = @AUTOCONF@ | |
91 | AUTOHEADER = @AUTOHEADER@ | 91 | AUTOHEADER = @AUTOHEADER@ | |
92 | AUTOM4TE = @AUTOM4TE@ | 92 | AUTOM4TE = @AUTOM4TE@ | |
93 | AUTOMAKE = @AUTOMAKE@ | 93 | AUTOMAKE = @AUTOMAKE@ | |
94 | AWK = @AWK@ | 94 | AWK = @AWK@ | |
95 | CANONICAL_HOST = @CANONICAL_HOST@ | 95 | CANONICAL_HOST = @CANONICAL_HOST@ | |
96 | CC = @CC@ | 96 | CC = @CC@ | |
97 | CCDEPMODE = @CCDEPMODE@ | 97 | CCDEPMODE = @CCDEPMODE@ | |
98 | CFLAGS = @CFLAGS@ | 98 | CFLAGS = @CFLAGS@ | |
99 | CPP = @CPP@ | 99 | CPP = @CPP@ | |
100 | CPPFLAGS = @CPPFLAGS@ | 100 | CPPFLAGS = @CPPFLAGS@ | |
101 | CXX = @CXX@ | |||
102 | CXXCPP = @CXXCPP@ | |||
103 | CXXDEPMODE = @CXXDEPMODE@ | |||
104 | CXXFLAGS = @CXXFLAGS@ | |||
105 | CYGPATH_W = @CYGPATH_W@ | 101 | CYGPATH_W = @CYGPATH_W@ | |
106 | DEFS = @DEFS@ | 102 | DEFS = @DEFS@ | |
107 | DEPDIR = @DEPDIR@ | 103 | DEPDIR = @DEPDIR@ | |
108 | ECHO = @ECHO@ | 104 | DSYMUTIL = @DSYMUTIL@ | |
105 | DUMPBIN = @DUMPBIN@ | |||
109 | ECHO_C = @ECHO_C@ | 106 | ECHO_C = @ECHO_C@ | |
110 | ECHO_N = @ECHO_N@ | 107 | ECHO_N = @ECHO_N@ | |
111 | ECHO_T = @ECHO_T@ | 108 | ECHO_T = @ECHO_T@ | |
112 | EGREP = @EGREP@ | 109 | EGREP = @EGREP@ | |
113 | EXEEXT = @EXEEXT@ | 110 | EXEEXT = @EXEEXT@ | |
114 | F77 = @F77@ | 111 | FGREP = @FGREP@ | |
115 | FFLAGS = @FFLAGS@ | |||
116 | GREP = @GREP@ | 112 | GREP = @GREP@ | |
117 | INSTALL = @INSTALL@ | 113 | INSTALL = @INSTALL@ | |
118 | INSTALL_DATA = @INSTALL_DATA@ | 114 | INSTALL_DATA = @INSTALL_DATA@ | |
119 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 115 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
120 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | 116 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
121 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | 117 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
118 | LD = @LD@ | |||
122 | LDFLAGS = @LDFLAGS@ | 119 | LDFLAGS = @LDFLAGS@ | |
123 | LIBOBJS = @LIBOBJS@ | 120 | LIBOBJS = @LIBOBJS@ | |
124 | LIBS = @LIBS@ | 121 | LIBS = @LIBS@ | |
125 | LIBTOOL = @LIBTOOL@ | 122 | LIBTOOL = @LIBTOOL@ | |
123 | LIPO = @LIPO@ | |||
126 | LN_S = @LN_S@ | 124 | LN_S = @LN_S@ | |
127 | LTLIBOBJS = @LTLIBOBJS@ | 125 | LTLIBOBJS = @LTLIBOBJS@ | |
128 | MAINT = @MAINT@ | 126 | MAINT = @MAINT@ | |
129 | MAKEINFO = @MAKEINFO@ | 127 | MAKEINFO = @MAKEINFO@ | |
130 | MKDIR_P = @MKDIR_P@ | 128 | MKDIR_P = @MKDIR_P@ | |
129 | NM = @NM@ | |||
130 | NMEDIT = @NMEDIT@ | |||
131 | OBJDUMP = @OBJDUMP@ | |||
131 | OBJEXT = @OBJEXT@ | 132 | OBJEXT = @OBJEXT@ | |
133 | OPENSSL_INCLUDES = @OPENSSL_INCLUDES@ | |||
134 | OPENSSL_LDFLAGS = @OPENSSL_LDFLAGS@ | |||
135 | OPENSSL_LIBS = @OPENSSL_LIBS@ | |||
136 | OTOOL = @OTOOL@ | |||
137 | OTOOL64 = @OTOOL64@ | |||
132 | PACKAGE = @PACKAGE@ | 138 | PACKAGE = @PACKAGE@ | |
133 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | 139 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
134 | PACKAGE_NAME = @PACKAGE_NAME@ | 140 | PACKAGE_NAME = @PACKAGE_NAME@ | |
135 | PACKAGE_STRING = @PACKAGE_STRING@ | 141 | PACKAGE_STRING = @PACKAGE_STRING@ | |
136 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | 142 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
137 | PACKAGE_VERSION = @PACKAGE_VERSION@ | 143 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
138 | PATH_SEPARATOR = @PATH_SEPARATOR@ | 144 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
145 | PKG_CONFIG = @PKG_CONFIG@ | |||
139 | RANLIB = @RANLIB@ | 146 | RANLIB = @RANLIB@ | |
140 | SED = @SED@ | 147 | SED = @SED@ | |
141 | SET_MAKE = @SET_MAKE@ | 148 | SET_MAKE = @SET_MAKE@ | |
142 | SHELL = @SHELL@ | 149 | SHELL = @SHELL@ | |
143 | STRIP = @STRIP@ | 150 | STRIP = @STRIP@ | |
144 | VERSION = @VERSION@ | 151 | VERSION = @VERSION@ | |
145 | WARNCFLAGS = @WARNCFLAGS@ | 152 | WARNCFLAGS = @WARNCFLAGS@ | |
146 | abs_builddir = @abs_builddir@ | 153 | abs_builddir = @abs_builddir@ | |
147 | abs_srcdir = @abs_srcdir@ | 154 | abs_srcdir = @abs_srcdir@ | |
148 | abs_top_builddir = @abs_top_builddir@ | 155 | abs_top_builddir = @abs_top_builddir@ | |
149 | abs_top_srcdir = @abs_top_srcdir@ | 156 | abs_top_srcdir = @abs_top_srcdir@ | |
150 | ac_ct_CC = @ac_ct_CC@ | 157 | ac_ct_CC = @ac_ct_CC@ | |
151 | ac_ct_CXX = @ac_ct_CXX@ | 158 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | |
152 | ac_ct_F77 = @ac_ct_F77@ | |||
153 | am__include = @am__include@ | 159 | am__include = @am__include@ | |
154 | am__leading_dot = @am__leading_dot@ | 160 | am__leading_dot = @am__leading_dot@ | |
155 | am__quote = @am__quote@ | 161 | am__quote = @am__quote@ | |
156 | am__tar = @am__tar@ | 162 | am__tar = @am__tar@ | |
157 | am__untar = @am__untar@ | 163 | am__untar = @am__untar@ | |
158 | bindir = @bindir@ | 164 | bindir = @bindir@ | |
159 | build = @build@ | 165 | build = @build@ | |
160 | build_alias = @build_alias@ | 166 | build_alias = @build_alias@ | |
161 | build_cpu = @build_cpu@ | 167 | build_cpu = @build_cpu@ | |
162 | build_os = @build_os@ | 168 | build_os = @build_os@ | |
163 | build_vendor = @build_vendor@ | 169 | build_vendor = @build_vendor@ | |
164 | builddir = @builddir@ | 170 | builddir = @builddir@ | |
165 | datadir = @datadir@ | 171 | datadir = @datadir@ | |
@@ -170,26 +176,27 @@ exec_prefix = @exec_prefix@ | @@ -170,26 +176,27 @@ exec_prefix = @exec_prefix@ | |||
170 | host = @host@ | 176 | host = @host@ | |
171 | host_alias = @host_alias@ | 177 | host_alias = @host_alias@ | |
172 | host_cpu = @host_cpu@ | 178 | host_cpu = @host_cpu@ | |
173 | host_os = @host_os@ | 179 | host_os = @host_os@ | |
174 | host_vendor = @host_vendor@ | 180 | host_vendor = @host_vendor@ | |
175 | htmldir = @htmldir@ | 181 | htmldir = @htmldir@ | |
176 | includedir = @includedir@ | 182 | includedir = @includedir@ | |
177 | infodir = @infodir@ | 183 | infodir = @infodir@ | |
178 | install_sh = @install_sh@ | 184 | install_sh = @install_sh@ | |
179 | libdir = @libdir@ | 185 | libdir = @libdir@ | |
180 | libexecdir = @libexecdir@ | 186 | libexecdir = @libexecdir@ | |
181 | localedir = @localedir@ | 187 | localedir = @localedir@ | |
182 | localstatedir = @localstatedir@ | 188 | localstatedir = @localstatedir@ | |
189 | lt_ECHO = @lt_ECHO@ | |||
183 | mandir = @mandir@ | 190 | mandir = @mandir@ | |
184 | mkdir_p = @mkdir_p@ | 191 | mkdir_p = @mkdir_p@ | |
185 | oldincludedir = @oldincludedir@ | 192 | oldincludedir = @oldincludedir@ | |
186 | pdfdir = @pdfdir@ | 193 | pdfdir = @pdfdir@ | |
187 | prefix = @prefix@ | 194 | prefix = @prefix@ | |
188 | program_transform_name = @program_transform_name@ | 195 | program_transform_name = @program_transform_name@ | |
189 | psdir = @psdir@ | 196 | psdir = @psdir@ | |
190 | sbindir = @sbindir@ | 197 | sbindir = @sbindir@ | |
191 | sharedstatedir = @sharedstatedir@ | 198 | sharedstatedir = @sharedstatedir@ | |
192 | srcdir = @srcdir@ | 199 | srcdir = @srcdir@ | |
193 | sysconfdir = @sysconfdir@ | 200 | sysconfdir = @sysconfdir@ | |
194 | target_alias = @target_alias@ | 201 | target_alias = @target_alias@ | |
195 | top_build_prefix = @top_build_prefix@ | 202 | top_build_prefix = @top_build_prefix@ | |
@@ -305,26 +312,27 @@ libnetpgp.la: $(libnetpgp_la_OBJECTS) $( | @@ -305,26 +312,27 @@ libnetpgp.la: $(libnetpgp_la_OBJECTS) $( | |||
305 | mostlyclean-compile: | 312 | mostlyclean-compile: | |
306 | -rm -f *.$(OBJEXT) | 313 | -rm -f *.$(OBJEXT) | |
307 | 314 | |||
308 | distclean-compile: | 315 | distclean-compile: | |
309 | -rm -f *.tab.c | 316 | -rm -f *.tab.c | |
310 | 317 | |||
311 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-bufgap.Plo@am__quote@ | 318 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-bufgap.Plo@am__quote@ | |
312 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-compress.Plo@am__quote@ | 319 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-compress.Plo@am__quote@ | |
313 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-create.Plo@am__quote@ | 320 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-create.Plo@am__quote@ | |
314 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-crypto.Plo@am__quote@ | 321 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-crypto.Plo@am__quote@ | |
315 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-fastctype.Plo@am__quote@ | 322 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-fastctype.Plo@am__quote@ | |
316 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-keyring.Plo@am__quote@ | 323 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-keyring.Plo@am__quote@ | |
317 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-misc.Plo@am__quote@ | 324 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-misc.Plo@am__quote@ | |
325 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-mj.Plo@am__quote@ | |||
318 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-netpgp.Plo@am__quote@ | 326 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-netpgp.Plo@am__quote@ | |
319 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-openssl_crypto.Plo@am__quote@ | 327 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-openssl_crypto.Plo@am__quote@ | |
320 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-packet-parse.Plo@am__quote@ | 328 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-packet-parse.Plo@am__quote@ | |
321 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-packet-print.Plo@am__quote@ | 329 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-packet-print.Plo@am__quote@ | |
322 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-packet-show.Plo@am__quote@ | 330 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-packet-show.Plo@am__quote@ | |
323 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-reader.Plo@am__quote@ | 331 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-reader.Plo@am__quote@ | |
324 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-signature.Plo@am__quote@ | 332 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-signature.Plo@am__quote@ | |
325 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-ssh2pgp.Plo@am__quote@ | 333 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-ssh2pgp.Plo@am__quote@ | |
326 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-symmetric.Plo@am__quote@ | 334 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-symmetric.Plo@am__quote@ | |
327 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-validate.Plo@am__quote@ | 335 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-validate.Plo@am__quote@ | |
328 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-writer.Plo@am__quote@ | 336 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libnetpgp_la-writer.Plo@am__quote@ | |
329 | 337 | |||
330 | .c.o: | 338 | .c.o: |
--- src/crypto/external/bsd/netpgp/dist/src/lib/config.h.in 2009/05/26 05:03:57 1.8
+++ src/crypto/external/bsd/netpgp/dist/src/lib/config.h.in 2010/08/07 04:16:40 1.9
@@ -104,26 +104,30 @@ | @@ -104,26 +104,30 @@ | |||
104 | 104 | |||
105 | /* Define to 1 if you have the <sys/types.h> header file. */ | 105 | /* Define to 1 if you have the <sys/types.h> header file. */ | |
106 | #undef HAVE_SYS_TYPES_H | 106 | #undef HAVE_SYS_TYPES_H | |
107 | 107 | |||
108 | /* Define to 1 if you have the <sys/uio.h> header file. */ | 108 | /* Define to 1 if you have the <sys/uio.h> header file. */ | |
109 | #undef HAVE_SYS_UIO_H | 109 | #undef HAVE_SYS_UIO_H | |
110 | 110 | |||
111 | /* Define to 1 if you have the <unistd.h> header file. */ | 111 | /* Define to 1 if you have the <unistd.h> header file. */ | |
112 | #undef HAVE_UNISTD_H | 112 | #undef HAVE_UNISTD_H | |
113 | 113 | |||
114 | /* Define to 1 if you have the <zlib.h> header file. */ | 114 | /* Define to 1 if you have the <zlib.h> header file. */ | |
115 | #undef HAVE_ZLIB_H | 115 | #undef HAVE_ZLIB_H | |
116 | 116 | |||
117 | /* Define to the sub-directory in which libtool stores uninstalled libraries. | |||
118 | */ | |||
119 | #undef LT_OBJDIR | |||
120 | ||||
117 | /* Name of package */ | 121 | /* Name of package */ | |
118 | #undef PACKAGE | 122 | #undef PACKAGE | |
119 | 123 | |||
120 | /* Define to the address where bug reports for this package should be sent. */ | 124 | /* Define to the address where bug reports for this package should be sent. */ | |
121 | #undef PACKAGE_BUGREPORT | 125 | #undef PACKAGE_BUGREPORT | |
122 | 126 | |||
123 | /* Define to the full name of this package. */ | 127 | /* Define to the full name of this package. */ | |
124 | #undef PACKAGE_NAME | 128 | #undef PACKAGE_NAME | |
125 | 129 | |||
126 | /* Define to the full name and version of this package. */ | 130 | /* Define to the full name and version of this package. */ | |
127 | #undef PACKAGE_STRING | 131 | #undef PACKAGE_STRING | |
128 | 132 | |||
129 | /* Define to the one symbol short name of this package. */ | 133 | /* Define to the one symbol short name of this package. */ |
--- src/crypto/external/bsd/netpgp/dist/src/lib/keyring.c 2010/07/09 05:35:34 1.39
+++ src/crypto/external/bsd/netpgp/dist/src/lib/keyring.c 2010/08/07 04:16:40 1.40
@@ -47,27 +47,27 @@ | @@ -47,27 +47,27 @@ | |||
47 | * limitations under the License. | 47 | * limitations under the License. | |
48 | */ | 48 | */ | |
49 | 49 | |||
50 | /** \file | 50 | /** \file | |
51 | */ | 51 | */ | |
52 | #include "config.h" | 52 | #include "config.h" | |
53 | 53 | |||
54 | #ifdef HAVE_SYS_CDEFS_H | 54 | #ifdef HAVE_SYS_CDEFS_H | |
55 | #include <sys/cdefs.h> | 55 | #include <sys/cdefs.h> | |
56 | #endif | 56 | #endif | |
57 | 57 | |||
58 | #if defined(__NetBSD__) | 58 | #if defined(__NetBSD__) | |
59 | __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved."); | 59 | __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved."); | |
60 | __RCSID("$NetBSD: keyring.c,v 1.39 2010/07/09 05:35:34 agc Exp $"); | 60 | __RCSID("$NetBSD: keyring.c,v 1.40 2010/08/07 04:16:40 agc Exp $"); | |
61 | #endif | 61 | #endif | |
62 | 62 | |||
63 | #ifdef HAVE_FCNTL_H | 63 | #ifdef HAVE_FCNTL_H | |
64 | #include <fcntl.h> | 64 | #include <fcntl.h> | |
65 | #endif | 65 | #endif | |
66 | 66 | |||
67 | #include <regex.h> | 67 | #include <regex.h> | |
68 | #include <stdlib.h> | 68 | #include <stdlib.h> | |
69 | #include <string.h> | 69 | #include <string.h> | |
70 | 70 | |||
71 | #ifdef HAVE_TERMIOS_H | 71 | #ifdef HAVE_TERMIOS_H | |
72 | #include <termios.h> | 72 | #include <termios.h> | |
73 | #endif | 73 | #endif | |
@@ -985,26 +985,64 @@ __ops_keyring_list(__ops_io_t *io, const | @@ -985,26 +985,64 @@ __ops_keyring_list(__ops_io_t *io, const | |||
985 | (keyring->keyc == 1) ? "" : "s"); | 985 | (keyring->keyc == 1) ? "" : "s"); | |
986 | for (n = 0, key = keyring->keys; n < keyring->keyc; ++n, ++key) { | 986 | for (n = 0, key = keyring->keys; n < keyring->keyc; ++n, ++key) { | |
987 | if (__ops_is_key_secret(key)) { | 987 | if (__ops_is_key_secret(key)) { | |
988 | __ops_print_keydata(io, keyring, key, "sec", | 988 | __ops_print_keydata(io, keyring, key, "sec", | |
989 | &key->key.seckey.pubkey, 0); | 989 | &key->key.seckey.pubkey, 0); | |
990 | } else { | 990 | } else { | |
991 | __ops_print_keydata(io, keyring, key, "pub", &key->key.pubkey, psigs); | 991 | __ops_print_keydata(io, keyring, key, "pub", &key->key.pubkey, psigs); | |
992 | } | 992 | } | |
993 | (void) fputc('\n', io->res); | 993 | (void) fputc('\n', io->res); | |
994 | } | 994 | } | |
995 | return 1; | 995 | return 1; | |
996 | } | 996 | } | |
997 | 997 | |||
998 | int | |||
999 | __ops_keyring_json(__ops_io_t *io, const __ops_keyring_t *keyring, mj_t *obj, const int psigs) | |||
1000 | { | |||
1001 | __ops_key_t *key; | |||
1002 | unsigned n; | |||
1003 | ||||
1004 | (void) memset(obj, 0x0, sizeof(*obj)); | |||
1005 | mj_create(obj, "array"); | |||
1006 | obj->size = keyring->keyvsize; | |||
1007 | if (__ops_get_debug_level(__FILE__)) { | |||
1008 | (void) fprintf(io->errs, "__ops_keyring_json: vsize %u\n", obj->size); | |||
1009 | } | |||
1010 | if ((obj->value.v = calloc(sizeof(*obj->value.v), obj->size)) == NULL) { | |||
1011 | (void) fprintf(io->errs, "calloc failure\n"); | |||
1012 | return 0; | |||
1013 | } | |||
1014 | for (n = 0, key = keyring->keys; n < keyring->keyc; ++n, ++key) { | |||
1015 | if (__ops_is_key_secret(key)) { | |||
1016 | __ops_sprint_mj(io, keyring, key, &obj->value.v[obj->c], | |||
1017 | "sec", &key->key.seckey.pubkey, psigs); | |||
1018 | } else { | |||
1019 | __ops_sprint_mj(io, keyring, key, &obj->value.v[obj->c], | |||
1020 | "pub", &key->key.pubkey, psigs); | |||
1021 | } | |||
1022 | if (obj->value.v[obj->c].type != 0) { | |||
1023 | obj->c += 1; | |||
1024 | } | |||
1025 | } | |||
1026 | if (__ops_get_debug_level(__FILE__)) { | |||
1027 | char *s; | |||
1028 | ||||
1029 | mj_asprint(&s, obj); | |||
1030 | (void) fprintf(stderr, "__ops_keyring_json: '%s'\n", s); | |||
1031 | free(s); | |||
1032 | } | |||
1033 | return 1; | |||
1034 | } | |||
1035 | ||||
998 | 1036 | |||
999 | /* this interface isn't right - hook into callback for getting passphrase */ | 1037 | /* this interface isn't right - hook into callback for getting passphrase */ | |
1000 | char * | 1038 | char * | |
1001 | __ops_export_key(__ops_io_t *io, const __ops_key_t *keydata, uint8_t *passphrase) | 1039 | __ops_export_key(__ops_io_t *io, const __ops_key_t *keydata, uint8_t *passphrase) | |
1002 | { | 1040 | { | |
1003 | __ops_output_t *output; | 1041 | __ops_output_t *output; | |
1004 | __ops_memory_t *mem; | 1042 | __ops_memory_t *mem; | |
1005 | char *cp; | 1043 | char *cp; | |
1006 | 1044 | |||
1007 | __OPS_USED(io); | 1045 | __OPS_USED(io); | |
1008 | __ops_setup_memory_write(&output, &mem, 128); | 1046 | __ops_setup_memory_write(&output, &mem, 128); | |
1009 | if (keydata->type == OPS_PTAG_CT_PUBLIC_KEY) { | 1047 | if (keydata->type == OPS_PTAG_CT_PUBLIC_KEY) { | |
1010 | __ops_write_xfer_pubkey(output, keydata, 1); | 1048 | __ops_write_xfer_pubkey(output, keydata, 1); |
--- src/crypto/external/bsd/netpgp/dist/src/lib/keyring.h 2010/07/26 06:37:35 1.28
+++ src/crypto/external/bsd/netpgp/dist/src/lib/keyring.h 2010/08/07 04:16:40 1.29
@@ -86,51 +86,52 @@ const __ops_key_t *__ops_getnextkeybynam | @@ -86,51 +86,52 @@ const __ops_key_t *__ops_getnextkeybynam | |||
86 | void __ops_keydata_free(__ops_key_t *); | 86 | void __ops_keydata_free(__ops_key_t *); | |
87 | void __ops_keyring_free(__ops_keyring_t *); | 87 | void __ops_keyring_free(__ops_keyring_t *); | |
88 | void __ops_dump_keyring(const __ops_keyring_t *); | 88 | void __ops_dump_keyring(const __ops_keyring_t *); | |
89 | const __ops_pubkey_t *__ops_get_pubkey(const __ops_key_t *); | 89 | const __ops_pubkey_t *__ops_get_pubkey(const __ops_key_t *); | |
90 | unsigned __ops_is_key_secret(const __ops_key_t *); | 90 | unsigned __ops_is_key_secret(const __ops_key_t *); | |
91 | const __ops_seckey_t *__ops_get_seckey(const __ops_key_t *); | 91 | const __ops_seckey_t *__ops_get_seckey(const __ops_key_t *); | |
92 | __ops_seckey_t *__ops_get_writable_seckey(__ops_key_t *); | 92 | __ops_seckey_t *__ops_get_writable_seckey(__ops_key_t *); | |
93 | __ops_seckey_t *__ops_decrypt_seckey(const __ops_key_t *, void *); | 93 | __ops_seckey_t *__ops_decrypt_seckey(const __ops_key_t *, void *); | |
94 | 94 | |||
95 | unsigned __ops_keyring_fileread(__ops_keyring_t *, const unsigned, | 95 | unsigned __ops_keyring_fileread(__ops_keyring_t *, const unsigned, | |
96 | const char *); | 96 | const char *); | |
97 | 97 | |||
98 | int __ops_keyring_list(__ops_io_t *, const __ops_keyring_t *, const int); | 98 | int __ops_keyring_list(__ops_io_t *, const __ops_keyring_t *, const int); | |
99 | int __ops_keyring_json(__ops_io_t *, const __ops_keyring_t *, mj_t *, const int); | |||
99 | 100 | |||
100 | void __ops_set_seckey(__ops_contents_t *, const __ops_key_t *); | 101 | void __ops_set_seckey(__ops_contents_t *, const __ops_key_t *); | |
101 | void __ops_forget(void *, unsigned); | 102 | void __ops_forget(void *, unsigned); | |
102 | 103 | |||
103 | const uint8_t *__ops_get_key_id(const __ops_key_t *); | 104 | const uint8_t *__ops_get_key_id(const __ops_key_t *); | |
104 | unsigned __ops_get_userid_count(const __ops_key_t *); | 105 | unsigned __ops_get_userid_count(const __ops_key_t *); | |
105 | const uint8_t *__ops_get_userid(const __ops_key_t *, unsigned); | 106 | const uint8_t *__ops_get_userid(const __ops_key_t *, unsigned); | |
106 | unsigned __ops_is_key_supported(const __ops_key_t *); | 107 | unsigned __ops_is_key_supported(const __ops_key_t *); | |
107 | 108 | |||
108 | uint8_t *__ops_add_userid(__ops_key_t *, const uint8_t *); | 109 | uint8_t *__ops_add_userid(__ops_key_t *, const uint8_t *); | |
109 | __ops_subpacket_t *__ops_add_subpacket(__ops_key_t *, | 110 | __ops_subpacket_t *__ops_add_subpacket(__ops_key_t *, | |
110 | const __ops_subpacket_t *); | 111 | const __ops_subpacket_t *); | |
111 | 112 | |||
112 | unsigned __ops_add_selfsigned_userid(__ops_key_t *, uint8_t *); | 113 | unsigned __ops_add_selfsigned_userid(__ops_key_t *, uint8_t *); | |
113 | 114 | |||
114 | __ops_key_t *__ops_keydata_new(void); | 115 | __ops_key_t *__ops_keydata_new(void); | |
115 | void __ops_keydata_init(__ops_key_t *, const __ops_content_enum); | 116 | void __ops_keydata_init(__ops_key_t *, const __ops_content_enum); | |
116 | 117 | |||
117 | int __ops_parse_and_accumulate(__ops_keyring_t *, __ops_stream_t *); | 118 | int __ops_parse_and_accumulate(__ops_keyring_t *, __ops_stream_t *); | |
118 | 119 | |||
119 | int __ops_sprint_keydata(__ops_io_t *, const __ops_keyring_t *, | 120 | int __ops_sprint_keydata(__ops_io_t *, const __ops_keyring_t *, | |
120 | const __ops_key_t *, char **, const char *, | 121 | const __ops_key_t *, char **, const char *, | |
121 | const __ops_pubkey_t *, const int); | 122 | const __ops_pubkey_t *, const int); | |
122 | int __ops_sprint_mj(__ops_io_t *, const __ops_keyring_t *, | 123 | int __ops_sprint_mj(__ops_io_t *, const __ops_keyring_t *, | |
123 | const __ops_key_t *, char **, const char *, | 124 | const __ops_key_t *, mj_t *, const char *, | |
124 | const __ops_pubkey_t *, const int); | 125 | const __ops_pubkey_t *, const int); | |
125 | int __ops_hkp_sprint_keydata(__ops_io_t *, const __ops_keyring_t *, | 126 | int __ops_hkp_sprint_keydata(__ops_io_t *, const __ops_keyring_t *, | |
126 | const __ops_key_t *, char **, | 127 | const __ops_key_t *, char **, | |
127 | const __ops_pubkey_t *, const int); | 128 | const __ops_pubkey_t *, const int); | |
128 | void __ops_print_keydata(__ops_io_t *, const __ops_keyring_t *, const __ops_key_t *, | 129 | void __ops_print_keydata(__ops_io_t *, const __ops_keyring_t *, const __ops_key_t *, | |
129 | const char *, const __ops_pubkey_t *, const int); | 130 | const char *, const __ops_pubkey_t *, const int); | |
130 | void __ops_print_sig(__ops_io_t *, const __ops_key_t *, const char *, | 131 | void __ops_print_sig(__ops_io_t *, const __ops_key_t *, const char *, | |
131 | const __ops_pubkey_t *); | 132 | const __ops_pubkey_t *); | |
132 | void __ops_print_pubkey(const __ops_pubkey_t *); | 133 | void __ops_print_pubkey(const __ops_pubkey_t *); | |
133 | int __ops_sprint_pubkey(const __ops_key_t *, char *, size_t); | 134 | int __ops_sprint_pubkey(const __ops_key_t *, char *, size_t); | |
134 | 135 | |||
135 | int __ops_list_packets(__ops_io_t *, | 136 | int __ops_list_packets(__ops_io_t *, | |
136 | char *, | 137 | char *, |
--- src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c 2010/07/09 14:45:43 1.65
+++ src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c 2010/08/07 04:16:40 1.66
@@ -24,27 +24,27 @@ | @@ -24,27 +24,27 @@ | |||
24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
27 | * POSSIBILITY OF SUCH DAMAGE. | 27 | * POSSIBILITY OF SUCH DAMAGE. | |
28 | */ | 28 | */ | |
29 | #include "config.h" | 29 | #include "config.h" | |
30 | 30 | |||
31 | #ifdef HAVE_SYS_CDEFS_H | 31 | #ifdef HAVE_SYS_CDEFS_H | |
32 | #include <sys/cdefs.h> | 32 | #include <sys/cdefs.h> | |
33 | #endif | 33 | #endif | |
34 | 34 | |||
35 | #if defined(__NetBSD__) | 35 | #if defined(__NetBSD__) | |
36 | __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved."); | 36 | __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved."); | |
37 | __RCSID("$NetBSD: netpgp.c,v 1.65 2010/07/09 14:45:43 agc Exp $"); | 37 | __RCSID("$NetBSD: netpgp.c,v 1.66 2010/08/07 04:16:40 agc Exp $"); | |
38 | #endif | 38 | #endif | |
39 | 39 | |||
40 | #include <sys/types.h> | 40 | #include <sys/types.h> | |
41 | #include <sys/stat.h> | 41 | #include <sys/stat.h> | |
42 | #include <sys/param.h> | 42 | #include <sys/param.h> | |
43 | #include <sys/mman.h> | 43 | #include <sys/mman.h> | |
44 | 44 | |||
45 | #ifdef HAVE_SYS_RESOURCE_H | 45 | #ifdef HAVE_SYS_RESOURCE_H | |
46 | #include <sys/resource.h> | 46 | #include <sys/resource.h> | |
47 | #endif | 47 | #endif | |
48 | 48 | |||
49 | #ifdef HAVE_FCNTL_H | 49 | #ifdef HAVE_FCNTL_H | |
50 | #include <fcntl.h> | 50 | #include <fcntl.h> | |
@@ -621,26 +621,47 @@ netpgp_end(netpgp_t *netpgp) | @@ -621,26 +621,47 @@ netpgp_end(netpgp_t *netpgp) | |||
621 | } | 621 | } | |
622 | 622 | |||
623 | /* list the keys in a keyring */ | 623 | /* list the keys in a keyring */ | |
624 | int | 624 | int | |
625 | netpgp_list_keys(netpgp_t *netpgp, const int psigs) | 625 | netpgp_list_keys(netpgp_t *netpgp, const int psigs) | |
626 | { | 626 | { | |
627 | if (netpgp->pubring == NULL) { | 627 | if (netpgp->pubring == NULL) { | |
628 | (void) fprintf(stderr, "No keyring\n"); | 628 | (void) fprintf(stderr, "No keyring\n"); | |
629 | return 0; | 629 | return 0; | |
630 | } | 630 | } | |
631 | return __ops_keyring_list(netpgp->io, netpgp->pubring, psigs); | 631 | return __ops_keyring_list(netpgp->io, netpgp->pubring, psigs); | |
632 | } | 632 | } | |
633 | 633 | |||
634 | /* list the keys in a keyring, returning a JSON string */ | |||
635 | int | |||
636 | netpgp_list_keys_json(netpgp_t *netpgp, char **json, const int psigs) | |||
637 | { | |||
638 | mj_t obj; | |||
639 | int ret; | |||
640 | ||||
641 | if (netpgp->pubring == NULL) { | |||
642 | (void) fprintf(stderr, "No keyring\n"); | |||
643 | return 0; | |||
644 | } | |||
645 | (void) memset(&obj, 0x0, sizeof(obj)); | |||
646 | if (!__ops_keyring_json(netpgp->io, netpgp->pubring, &obj, psigs)) { | |||
647 | (void) fprintf(stderr, "No keys in keyring\n"); | |||
648 | return 0; | |||
649 | } | |||
650 | ret = mj_asprint(json, &obj); | |||
651 | mj_delete(&obj); | |||
652 | return ret; | |||
653 | } | |||
654 | ||||
634 | DEFINE_ARRAY(strings_t, char *); | 655 | DEFINE_ARRAY(strings_t, char *); | |
635 | 656 | |||
636 | #ifndef HKP_VERSION | 657 | #ifndef HKP_VERSION | |
637 | #define HKP_VERSION 1 | 658 | #define HKP_VERSION 1 | |
638 | #endif | 659 | #endif | |
639 | 660 | |||
640 | /* find and list some keys in a keyring */ | 661 | /* find and list some keys in a keyring */ | |
641 | int | 662 | int | |
642 | netpgp_match_keys(netpgp_t *netpgp, char *name, const char *fmt, void *vp, const int psigs) | 663 | netpgp_match_keys(netpgp_t *netpgp, char *name, const char *fmt, void *vp, const int psigs) | |
643 | { | 664 | { | |
644 | const __ops_key_t *key; | 665 | const __ops_key_t *key; | |
645 | unsigned k; | 666 | unsigned k; | |
646 | strings_t pubs; | 667 | strings_t pubs; | |
@@ -677,26 +698,68 @@ netpgp_match_keys(netpgp_t *netpgp, char | @@ -677,26 +698,68 @@ netpgp_match_keys(netpgp_t *netpgp, char | |||
677 | (void) fprintf(fp, "info:%d:%d\n", HKP_VERSION, pubs.c); | 698 | (void) fprintf(fp, "info:%d:%d\n", HKP_VERSION, pubs.c); | |
678 | } else { | 699 | } else { | |
679 | (void) fprintf(fp, "%d key%s found\n", pubs.c, | 700 | (void) fprintf(fp, "%d key%s found\n", pubs.c, | |
680 | (pubs.c == 1) ? "" : "s"); | 701 | (pubs.c == 1) ? "" : "s"); | |
681 | } | 702 | } | |
682 | for (k = 0 ; k < pubs.c ; k++) { | 703 | for (k = 0 ; k < pubs.c ; k++) { | |
683 | (void) fprintf(fp, "%s%s", pubs.v[k], (k < pubs.c - 1) ? "\n" : ""); | 704 | (void) fprintf(fp, "%s%s", pubs.v[k], (k < pubs.c - 1) ? "\n" : ""); | |
684 | free(pubs.v[k]); | 705 | free(pubs.v[k]); | |
685 | } | 706 | } | |
686 | free(pubs.v); | 707 | free(pubs.v); | |
687 | return pubs.c; | 708 | return pubs.c; | |
688 | } | 709 | } | |
689 | 710 | |||
711 | /* find and list some keys in a keyring - return JSON string */ | |||
712 | int | |||
713 | netpgp_match_keys_json(netpgp_t *netpgp, char **json, char *name, const char *fmt, const int psigs) | |||
714 | { | |||
715 | const __ops_key_t *key; | |||
716 | unsigned k; | |||
717 | mj_t id_array; | |||
718 | int ret; | |||
719 | ||||
720 | if (name[0] == '0' && name[1] == 'x') { | |||
721 | name += 2; | |||
722 | } | |||
723 | (void) memset(&id_array, 0x0, sizeof(id_array)); | |||
724 | k = 0; | |||
725 | *json = NULL; | |||
726 | mj_create(&id_array, "array"); | |||
727 | do { | |||
728 | key = __ops_getnextkeybyname(netpgp->io, netpgp->pubring, | |||
729 | name, &k); | |||
730 | if (key != NULL) { | |||
731 | if (strcmp(fmt, "mr") == 0) { | |||
732 | #if 0 | |||
733 | __ops_hkp_sprint_keydata(netpgp->io, netpgp->pubring, | |||
734 | key, &pubs.v[pubs.c], | |||
735 | &key->key.pubkey, psigs); | |||
736 | #endif | |||
737 | } else { | |||
738 | ALLOC(mj_t, id_array.value.v, id_array.size, | |||
739 | id_array.c, 10, 10, "netpgp_match_keys_json", return 0); | |||
740 | __ops_sprint_mj(netpgp->io, netpgp->pubring, | |||
741 | key, &id_array.value.v[id_array.c++], | |||
742 | "pub", | |||
743 | &key->key.pubkey, psigs); | |||
744 | } | |||
745 | k += 1; | |||
746 | } | |||
747 | } while (key != NULL); | |||
748 | ret = mj_asprint(json, &id_array); | |||
749 | mj_delete(&id_array); | |||
750 | return ret; | |||
751 | } | |||
752 | ||||
690 | /* find and list some public keys in a keyring */ | 753 | /* find and list some public keys in a keyring */ | |
691 | int | 754 | int | |
692 | netpgp_match_pubkeys(netpgp_t *netpgp, char *name, void *vp) | 755 | netpgp_match_pubkeys(netpgp_t *netpgp, char *name, void *vp) | |
693 | { | 756 | { | |
694 | const __ops_key_t *key; | 757 | const __ops_key_t *key; | |
695 | unsigned k; | 758 | unsigned k; | |
696 | strings_t pubs; | 759 | strings_t pubs; | |
697 | FILE *fp = (FILE *)vp; | 760 | FILE *fp = (FILE *)vp; | |
698 | 761 | |||
699 | (void) memset(&pubs, 0x0, sizeof(pubs)); | 762 | (void) memset(&pubs, 0x0, sizeof(pubs)); | |
700 | do { | 763 | do { | |
701 | key = __ops_getnextkeybyname(netpgp->io, netpgp->pubring, | 764 | key = __ops_getnextkeybyname(netpgp->io, netpgp->pubring, | |
702 | name, &k); | 765 | name, &k); |
--- src/crypto/external/bsd/netpgp/dist/src/lib/packet-print.c 2010/07/26 06:37:35 1.34
+++ src/crypto/external/bsd/netpgp/dist/src/lib/packet-print.c 2010/08/07 04:16:40 1.35
@@ -48,27 +48,27 @@ | @@ -48,27 +48,27 @@ | |||
48 | */ | 48 | */ | |
49 | 49 | |||
50 | /* | 50 | /* | |
51 | * ! \file \brief Standard API print functions | 51 | * ! \file \brief Standard API print functions | |
52 | */ | 52 | */ | |
53 | #include "config.h" | 53 | #include "config.h" | |
54 | 54 | |||
55 | #ifdef HAVE_SYS_CDEFS_H | 55 | #ifdef HAVE_SYS_CDEFS_H | |
56 | #include <sys/cdefs.h> | 56 | #include <sys/cdefs.h> | |
57 | #endif | 57 | #endif | |
58 | 58 | |||
59 | #if defined(__NetBSD__) | 59 | #if defined(__NetBSD__) | |
60 | __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved."); | 60 | __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved."); | |
61 | __RCSID("$NetBSD: packet-print.c,v 1.34 2010/07/26 06:37:35 agc Exp $"); | 61 | __RCSID("$NetBSD: packet-print.c,v 1.35 2010/08/07 04:16:40 agc Exp $"); | |
62 | #endif | 62 | #endif | |
63 | 63 | |||
64 | #include <string.h> | 64 | #include <string.h> | |
65 | #include <stdio.h> | 65 | #include <stdio.h> | |
66 | 66 | |||
67 | #ifdef HAVE_UNISTD_H | 67 | #ifdef HAVE_UNISTD_H | |
68 | #include <unistd.h> | 68 | #include <unistd.h> | |
69 | #endif | 69 | #endif | |
70 | 70 | |||
71 | #include "crypto.h" | 71 | #include "crypto.h" | |
72 | #include "keyring.h" | 72 | #include "keyring.h" | |
73 | #include "packet-show.h" | 73 | #include "packet-show.h" | |
74 | #include "signature.h" | 74 | #include "signature.h" | |
@@ -463,127 +463,110 @@ __ops_sprint_keydata(__ops_io_t *io, con | @@ -463,127 +463,110 @@ __ops_sprint_keydata(__ops_io_t *io, con | |||
463 | } | 463 | } | |
464 | } | 464 | } | |
465 | return __ops_asprintf(buf, "%s %d/%s %s %s %s\nKey fingerprint: %s\n%s", | 465 | return __ops_asprintf(buf, "%s %d/%s %s %s %s\nKey fingerprint: %s\n%s", | |
466 | header, | 466 | header, | |
467 | numkeybits(pubkey), | 467 | numkeybits(pubkey), | |
468 | __ops_show_pka(pubkey->alg), | 468 | __ops_show_pka(pubkey->alg), | |
469 | strhexdump(keyid, key->key_id, OPS_KEY_ID_SIZE, ""), | 469 | strhexdump(keyid, key->key_id, OPS_KEY_ID_SIZE, ""), | |
470 | ptimestr(t, sizeof(t), pubkey->birthtime), | 470 | ptimestr(t, sizeof(t), pubkey->birthtime), | |
471 | expired, | 471 | expired, | |
472 | strhexdump(fp, key->fingerprint.fingerprint, key->fingerprint.length, " "), | 472 | strhexdump(fp, key->fingerprint.fingerprint, key->fingerprint.length, " "), | |
473 | uidbuf); | 473 | uidbuf); | |
474 | } | 474 | } | |
475 | 475 | |||
476 | /* return the key info as a JSON encoded string */ | |||
476 | int | 477 | int | |
477 | __ops_sprint_mj(__ops_io_t *io, const __ops_keyring_t *keyring, | 478 | __ops_sprint_mj(__ops_io_t *io, const __ops_keyring_t *keyring, | |
478 | const __ops_key_t *key, char **buf, const char *header, | 479 | const __ops_key_t *key, mj_t *keyjson, const char *header, | |
479 | const __ops_pubkey_t *pubkey, const int psigs) | 480 | const __ops_pubkey_t *pubkey, const int psigs) | |
480 | { | 481 | { | |
481 | const __ops_key_t *trustkey; | 482 | const __ops_key_t *trustkey; | |
482 | unsigned from; | 483 | unsigned from; | |
483 | unsigned i; | 484 | unsigned i; | |
484 | unsigned j; | 485 | unsigned j; | |
485 | time_t now; | 486 | mj_t sub_obj; | |
486 | mj_t expired_obj; | |||
487 | mj_t uids_array; | |||
488 | mj_t sig_array; | |||
489 | mj_t sig_obj; | |||
490 | mj_t key_obj; | |||
491 | char uidbuf[KB(64)]; | |||
492 | char keyid[OPS_KEY_ID_SIZE * 3]; | 487 | char keyid[OPS_KEY_ID_SIZE * 3]; | |
493 | char fp[(OPS_FINGERPRINT_SIZE * 3) + 1]; | 488 | char fp[(OPS_FINGERPRINT_SIZE * 3) + 1]; | |
494 | int r; | 489 | int r; | |
495 | 490 | |||
496 | if (key == NULL || key->revoked) { | 491 | if (key == NULL || key->revoked) { | |
497 | return -1; | 492 | return -1; | |
498 | } | 493 | } | |
499 | (void) memset(uidbuf, 0x0, sizeof(uidbuf)); | 494 | (void) memset(keyjson, 0x0, sizeof(*keyjson)); | |
500 | (void) memset(&key_obj, 0x0, sizeof(key_obj)); | 495 | mj_create(keyjson, "object"); | |
501 | mj_create(&key_obj, "object"); | 496 | mj_append_field(keyjson, "header", "string", header); | |
502 | mj_append_field(&key_obj, "header", "string", header); | 497 | mj_append_field(keyjson, "key bits", "integer", (int64_t) numkeybits(pubkey)); | |
503 | mj_append_field(&key_obj, "key bits", "integer", (int64_t) numkeybits(pubkey)); | 498 | mj_append_field(keyjson, "pka", "string", __ops_show_pka(pubkey->alg)); | |
504 | mj_append_field(&key_obj, "pka", "string", __ops_show_pka(pubkey->alg)); | 499 | mj_append_field(keyjson, "key id", "string", strhexdump(keyid, key->key_id, OPS_KEY_ID_SIZE, "")); | |
505 | mj_append_field(&key_obj, "key id", "string", strhexdump(keyid, key->key_id, OPS_KEY_ID_SIZE, "")); | 500 | mj_append_field(keyjson, "fingerprint", "string", | |
506 | mj_append(&key_obj, "fingerprint", "string", | |||
507 | strhexdump(fp, key->fingerprint.fingerprint, key->fingerprint.length, " ")); | 501 | strhexdump(fp, key->fingerprint.fingerprint, key->fingerprint.length, " ")); | |
508 | now = time(NULL); | 502 | mj_append_field(keyjson, "birthtime", "integer", pubkey->birthtime); | |
509 | mj_append_field(&key_obj, "birthtime", "integer", pubkey->birthtime); | 503 | mj_append_field(keyjson, "duration", "integer", pubkey->duration); | |
510 | mj_append_field(&key_obj, "duration", "integer", pubkey->duration); | |||
511 | if (pubkey->duration > 0) { | |||
512 | (void) memset(&expired_obj, 0x0, sizeof(expired_obj)); | |||
513 | mj_append_field(&expired_obj, "expiry status", "string", | |||
514 | (pubkey->birthtime + pubkey->duration < now) ? "[EXPIRED]" : "[EXPIRES]"); | |||
515 | mj_append_field(&expired_obj, "expiry", "integer", | |||
516 | (int64_t)(pubkey->birthtime + pubkey->duration)); | |||
517 | mj_append_field(&key_obj, "expiration", "object", &expired_obj); | |||
518 | } | |||
519 | (void) memset(&uids_array, 0x0, sizeof(uids_array)); | |||
520 | mj_create(&uids_array, "array"); | |||
521 | for (i = 0; i < key->uidc; i++) { | 504 | for (i = 0; i < key->uidc; i++) { | |
522 | if ((r = isrevoked(key, i)) >= 0 && | 505 | if ((r = isrevoked(key, i)) >= 0 && | |
523 | key->revokes[r].code == OPS_REVOCATION_COMPROMISED) { | 506 | key->revokes[r].code == OPS_REVOCATION_COMPROMISED) { | |
524 | continue; | 507 | continue; | |
525 | } | 508 | } | |
526 | mj_append(&uids_array, "string", key->uids[i]); | 509 | (void) memset(&sub_obj, 0x0, sizeof(sub_obj)); | |
527 | mj_append(&uids_array, "integer", r); | 510 | mj_create(&sub_obj, "array"); | |
528 | (void) memset(&sig_array, 0x0, sizeof(sig_array)); | 511 | mj_append(&sub_obj, "string", key->uids[i]); | |
529 | mj_create(&sig_array, "array"); | 512 | mj_append(&sub_obj, "string", (r >= 0) ? "[REVOKED]" : ""); | |
513 | mj_append_field(keyjson, "uid", "array", &sub_obj); | |||
514 | mj_delete(&sub_obj); | |||
530 | for (j = 0 ; j < key->subsigc ; j++) { | 515 | for (j = 0 ; j < key->subsigc ; j++) { | |
531 | (void) memset(&sig_obj, 0x0, sizeof(sig_obj)); | |||
532 | mj_create(&sig_obj, "object"); | |||
533 | if (psigs) { | 516 | if (psigs) { | |
534 | if (key->subsigs[j].uid != i) { | 517 | if (key->subsigs[j].uid != i) { | |
535 | continue; | 518 | continue; | |
536 | } | 519 | } | |
537 | } else { | 520 | } else { | |
538 | if (!(key->subsigs[j].sig.info.version == 4 && | 521 | if (!(key->subsigs[j].sig.info.version == 4 && | |
539 | key->subsigs[j].sig.info.type == OPS_SIG_SUBKEY && | 522 | key->subsigs[j].sig.info.type == OPS_SIG_SUBKEY && | |
540 | i == key->uidc - 1)) { | 523 | i == key->uidc - 1)) { | |
541 | continue; | 524 | continue; | |
542 | } | 525 | } | |
543 | } | 526 | } | |
544 | mj_append_field(&sig_obj, "pgp version", "integer", (int64_t)key->subsigs[j].sig.info.version); | 527 | (void) memset(&sub_obj, 0x0, sizeof(sub_obj)); | |
528 | mj_create(&sub_obj, "array"); | |||
545 | if (key->subsigs[j].sig.info.version == 4 && | 529 | if (key->subsigs[j].sig.info.version == 4 && | |
546 | key->subsigs[j].sig.info.type == OPS_SIG_SUBKEY) { | 530 | key->subsigs[j].sig.info.type == OPS_SIG_SUBKEY) { | |
547 | mj_append_field(&sig_obj, "header", "string", "sub"); | 531 | mj_append(&sub_obj, "integer", (int64_t)numkeybits(pubkey)); | |
548 | mj_append_field(&sig_obj, "key size", "integer", (int64_t)numkeybits(pubkey)); | 532 | mj_append(&sub_obj, "string", | |
549 | mj_append_field(&sig_obj, "pka", "string", | |||
550 | (const char *)__ops_show_pka(key->subsigs[j].sig.info.key_alg)); | 533 | (const char *)__ops_show_pka(key->subsigs[j].sig.info.key_alg)); | |
551 | mj_append_field(&sig_obj, "signer", "string", | 534 | mj_append(&sub_obj, "string", | |
552 | strhexdump(keyid, key->subsigs[j].sig.info.signer_id, OPS_KEY_ID_SIZE, "")); | 535 | strhexdump(keyid, key->subsigs[j].sig.info.signer_id, OPS_KEY_ID_SIZE, "")); | |
553 | mj_append_field(&sig_obj, "signtime", "integer", | 536 | mj_append(&sub_obj, "integer", (int64_t)key->subsigs[j].sig.info.birthtime); | |
554 | (int64_t)key->subsigs[j].sig.info.birthtime); | 537 | mj_append_field(keyjson, "sub", "array", &sub_obj); | |
538 | mj_delete(&sub_obj); | |||
555 | } else { | 539 | } else { | |
556 | mj_append_field(&sig_obj, "signer", "string", | 540 | mj_append(&sub_obj, "string", | |
557 | strhexdump(keyid, key->subsigs[j].sig.info.signer_id, OPS_KEY_ID_SIZE, "")); | 541 | strhexdump(keyid, key->subsigs[j].sig.info.signer_id, OPS_KEY_ID_SIZE, "")); | |
558 | mj_append_field(&sig_obj, "signtime", "integer", | 542 | mj_append(&sub_obj, "integer", | |
559 | (int64_t)(key->subsigs[j].sig.info.birthtime)); | 543 | (int64_t)(key->subsigs[j].sig.info.birthtime)); | |
560 | from = 0; | 544 | from = 0; | |
561 | trustkey = __ops_getkeybyid(io, keyring, key->subsigs[j].sig.info.signer_id, &from); | 545 | trustkey = __ops_getkeybyid(io, keyring, key->subsigs[j].sig.info.signer_id, &from); | |
562 | mj_append_field(&sig_obj, "trustkey", "string", | 546 | mj_append(&sub_obj, "string", | |
563 | (trustkey) ? (char *)trustkey->uids[trustkey->uid0] : "[unknown]"); | 547 | (trustkey) ? (char *)trustkey->uids[trustkey->uid0] : "[unknown]"); | |
548 | mj_append_field(keyjson, "sig", "array", &sub_obj); | |||
549 | mj_delete(&sub_obj); | |||
564 | } | 550 | } | |
565 | mj_append(&sig_array, "object", &sig_obj); | |||
566 | mj_delete(&sig_obj); | |||
567 | } | |||
568 | if (mj_arraycount(&sig_array) > 0) { | |||
569 | mj_append(&uids_array, "array", &sig_array); | |||
570 | } | 551 | } | |
571 | mj_delete(&sig_array); | |||
572 | } | 552 | } | |
573 | mj_append_field(&key_obj, "uids", "array", &uids_array); | 553 | if (__ops_get_debug_level(__FILE__)) { | |
574 | mj_delete(&uids_array); | 554 | char *buf; | |
575 | mj_asprint(buf, &key_obj); | 555 | ||
576 | mj_delete(&key_obj); | 556 | mj_asprint(&buf, keyjson); | |
557 | (void) fprintf(stderr, "__ops_sprint_mj: '%s'\n", buf); | |||
558 | free(buf); | |||
559 | } | |||
577 | return 1; | 560 | return 1; | |
578 | } | 561 | } | |
579 | 562 | |||
580 | int | 563 | int | |
581 | __ops_hkp_sprint_keydata(__ops_io_t *io, const __ops_keyring_t *keyring, | 564 | __ops_hkp_sprint_keydata(__ops_io_t *io, const __ops_keyring_t *keyring, | |
582 | const __ops_key_t *key, char **buf, | 565 | const __ops_key_t *key, char **buf, | |
583 | const __ops_pubkey_t *pubkey, const int psigs) | 566 | const __ops_pubkey_t *pubkey, const int psigs) | |
584 | { | 567 | { | |
585 | const __ops_key_t *trustkey; | 568 | const __ops_key_t *trustkey; | |
586 | unsigned from; | 569 | unsigned from; | |
587 | unsigned i; | 570 | unsigned i; | |
588 | unsigned j; | 571 | unsigned j; | |
589 | char keyid[OPS_KEY_ID_SIZE * 3]; | 572 | char keyid[OPS_KEY_ID_SIZE * 3]; |
--- src/crypto/external/bsd/netpgp/dist/src/lib/version.h 2010/07/09 05:35:35 1.37
+++ src/crypto/external/bsd/netpgp/dist/src/lib/version.h 2010/08/07 04:16:40 1.38
@@ -48,20 +48,20 @@ | @@ -48,20 +48,20 @@ | |||
48 | */ | 48 | */ | |
49 | #ifndef VERSION_H_ | 49 | #ifndef VERSION_H_ | |
50 | #define VERSION_H_ 1 | 50 | #define VERSION_H_ 1 | |
51 | 51 | |||
52 | #ifndef NETPGP_AUTOCONF_VERSION | 52 | #ifndef NETPGP_AUTOCONF_VERSION | |
53 | #define NETPGP_AUTOCONF_VERSION PACKAGE_VERSION | 53 | #define NETPGP_AUTOCONF_VERSION PACKAGE_VERSION | |
54 | #endif | 54 | #endif | |
55 | 55 | |||
56 | #ifndef NETPGP_MAINTAINER | 56 | #ifndef NETPGP_MAINTAINER | |
57 | #define NETPGP_MAINTAINER PACKAGE_BUGREPORT | 57 | #define NETPGP_MAINTAINER PACKAGE_BUGREPORT | |
58 | #endif | 58 | #endif | |
59 | 59 | |||
60 | /* development versions have .99 suffix */ | 60 | /* development versions have .99 suffix */ | |
61 | #define NETPGP_BASE_VERSION "3.99.7" | 61 | #define NETPGP_BASE_VERSION "3.99.8" | |
62 | 62 | |||
63 | #define NETPGP_VERSION_CAT(a, b) "NetPGP portable " a "/[" b "]" | 63 | #define NETPGP_VERSION_CAT(a, b) "NetPGP portable " a "/[" b "]" | |
64 | #define NETPGP_VERSION_STRING \ | 64 | #define NETPGP_VERSION_STRING \ | |
65 | NETPGP_VERSION_CAT(NETPGP_BASE_VERSION, NETPGP_AUTOCONF_VERSION) | 65 | NETPGP_VERSION_CAT(NETPGP_BASE_VERSION, NETPGP_AUTOCONF_VERSION) | |
66 | 66 | |||
67 | #endif /* !VERSION_H_ */ | 67 | #endif /* !VERSION_H_ */ |
--- src/crypto/external/bsd/netpgp/dist/src/netpgp/Makefile 2010/07/09 05:36:28 1.16
+++ src/crypto/external/bsd/netpgp/dist/src/netpgp/Makefile 2010/08/07 04:16:40 1.17
@@ -107,36 +107,36 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c | @@ -107,36 +107,36 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c | |||
107 | LDFLAGS = | 107 | LDFLAGS = | |
108 | LIBOBJS = | 108 | LIBOBJS = | |
109 | LIBS = -lcrypto -lbz2 -lz | 109 | LIBS = -lcrypto -lbz2 -lz | |
110 | LIBTOOL = $(SHELL) $(top_builddir)/libtool | 110 | LIBTOOL = $(SHELL) $(top_builddir)/libtool | |
111 | LN_S = ln -s | 111 | LN_S = ln -s | |
112 | LTLIBOBJS = | 112 | LTLIBOBJS = | |
113 | MAINT = # | 113 | MAINT = # | |
114 | MAKEINFO = ${SHELL} /usr/src/crypto/external/bsd/netpgp/dist/buildaux/missing --run makeinfo | 114 | MAKEINFO = ${SHELL} /usr/src/crypto/external/bsd/netpgp/dist/buildaux/missing --run makeinfo | |
115 | MKDIR_P = ../../buildaux/install-sh -c -d | 115 | MKDIR_P = ../../buildaux/install-sh -c -d | |
116 | OBJEXT = o | 116 | OBJEXT = o | |
117 | PACKAGE = netpgp | 117 | PACKAGE = netpgp | |
118 | PACKAGE_BUGREPORT = Alistair Crooks <agc@netbsd.org> c0596823 | 118 | PACKAGE_BUGREPORT = Alistair Crooks <agc@netbsd.org> c0596823 | |
119 | PACKAGE_NAME = netpgp | 119 | PACKAGE_NAME = netpgp | |
120 | PACKAGE_STRING = netpgp 20100707 | 120 | PACKAGE_STRING = netpgp 20100708 | |
121 | PACKAGE_TARNAME = netpgp | 121 | PACKAGE_TARNAME = netpgp | |
122 | PACKAGE_VERSION = 20100707 | 122 | PACKAGE_VERSION = 20100708 | |
123 | PATH_SEPARATOR = : | 123 | PATH_SEPARATOR = : | |
124 | RANLIB = ranlib | 124 | RANLIB = ranlib | |
125 | SED = /usr/bin/sed | 125 | SED = /usr/bin/sed | |
126 | SET_MAKE = | 126 | SET_MAKE = | |
127 | SHELL = /bin/ksh | 127 | SHELL = /bin/ksh | |
128 | STRIP = strip | 128 | STRIP = strip | |
129 | VERSION = 20100707 | 129 | VERSION = 20100708 | |
130 | WARNCFLAGS = -Werror -Wall -Wpointer-arith | 130 | WARNCFLAGS = -Werror -Wall -Wpointer-arith | |
131 | abs_builddir = /usr/src/crypto/external/bsd/netpgp/dist/src/netpgp | 131 | abs_builddir = /usr/src/crypto/external/bsd/netpgp/dist/src/netpgp | |
132 | abs_srcdir = /usr/src/crypto/external/bsd/netpgp/dist/src/netpgp | 132 | abs_srcdir = /usr/src/crypto/external/bsd/netpgp/dist/src/netpgp | |
133 | abs_top_builddir = /usr/src/crypto/external/bsd/netpgp/dist | 133 | abs_top_builddir = /usr/src/crypto/external/bsd/netpgp/dist | |
134 | abs_top_srcdir = /usr/src/crypto/external/bsd/netpgp/dist | 134 | abs_top_srcdir = /usr/src/crypto/external/bsd/netpgp/dist | |
135 | ac_ct_CC = gcc | 135 | ac_ct_CC = gcc | |
136 | ac_ct_CXX = g++ | 136 | ac_ct_CXX = g++ | |
137 | ac_ct_F77 = | 137 | ac_ct_F77 = | |
138 | am__include = include | 138 | am__include = include | |
139 | am__leading_dot = . | 139 | am__leading_dot = . | |
140 | am__quote = | 140 | am__quote = | |
141 | am__tar = ${AMTAR} chof - "$$tardir" | 141 | am__tar = ${AMTAR} chof - "$$tardir" | |
142 | am__untar = ${AMTAR} xf - | 142 | am__untar = ${AMTAR} xf - |
--- src/crypto/external/bsd/netpgp/dist/src/netpgp/Makefile.in 2009/06/10 00:38:09 1.2
+++ src/crypto/external/bsd/netpgp/dist/src/netpgp/Makefile.in 2010/08/07 04:16:40 1.3
@@ -27,27 +27,28 @@ transform = $(program_transform_name) | @@ -27,27 +27,28 @@ transform = $(program_transform_name) | |||
27 | NORMAL_INSTALL = : | 27 | NORMAL_INSTALL = : | |
28 | PRE_INSTALL = : | 28 | PRE_INSTALL = : | |
29 | POST_INSTALL = : | 29 | POST_INSTALL = : | |
30 | NORMAL_UNINSTALL = : | 30 | NORMAL_UNINSTALL = : | |
31 | PRE_UNINSTALL = : | 31 | PRE_UNINSTALL = : | |
32 | POST_UNINSTALL = : | 32 | POST_UNINSTALL = : | |
33 | build_triplet = @build@ | 33 | build_triplet = @build@ | |
34 | host_triplet = @host@ | 34 | host_triplet = @host@ | |
35 | bin_PROGRAMS = netpgp$(EXEEXT) | 35 | bin_PROGRAMS = netpgp$(EXEEXT) | |
36 | subdir = src/netpgp | 36 | subdir = src/netpgp | |
37 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | 37 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | |
38 | $(srcdir)/Makefile.in | 38 | $(srcdir)/Makefile.in | |
39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
40 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | 40 | am__aclocal_m4_deps = $(top_srcdir)/ax_check_openssl.m4 \ | |
41 | $(top_srcdir)/configure.ac | |||
41 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 42 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
42 | $(ACLOCAL_M4) | 43 | $(ACLOCAL_M4) | |
43 | mkinstalldirs = $(install_sh) -d | 44 | mkinstalldirs = $(install_sh) -d | |
44 | CONFIG_HEADER = $(top_builddir)/src/lib/config.h | 45 | CONFIG_HEADER = $(top_builddir)/src/lib/config.h | |
45 | CONFIG_CLEAN_FILES = | 46 | CONFIG_CLEAN_FILES = | |
46 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" | 47 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" | |
47 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | 48 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | |
48 | PROGRAMS = $(bin_PROGRAMS) | 49 | PROGRAMS = $(bin_PROGRAMS) | |
49 | am_netpgp_OBJECTS = netpgp-netpgp.$(OBJEXT) | 50 | am_netpgp_OBJECTS = netpgp-netpgp.$(OBJEXT) | |
50 | netpgp_OBJECTS = $(am_netpgp_OBJECTS) | 51 | netpgp_OBJECTS = $(am_netpgp_OBJECTS) | |
51 | netpgp_DEPENDENCIES = ../lib/libnetpgp.la | 52 | netpgp_DEPENDENCIES = ../lib/libnetpgp.la | |
52 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src/lib | 53 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src/lib | |
53 | depcomp = $(SHELL) $(top_srcdir)/buildaux/depcomp | 54 | depcomp = $(SHELL) $(top_srcdir)/buildaux/depcomp | |
@@ -73,78 +74,84 @@ ACLOCAL = @ACLOCAL@ | @@ -73,78 +74,84 @@ ACLOCAL = @ACLOCAL@ | |||
73 | AMTAR = @AMTAR@ | 74 | AMTAR = @AMTAR@ | |
74 | AR = @AR@ | 75 | AR = @AR@ | |
75 | AUTOCONF = @AUTOCONF@ | 76 | AUTOCONF = @AUTOCONF@ | |
76 | AUTOHEADER = @AUTOHEADER@ | 77 | AUTOHEADER = @AUTOHEADER@ | |
77 | AUTOM4TE = @AUTOM4TE@ | 78 | AUTOM4TE = @AUTOM4TE@ | |
78 | AUTOMAKE = @AUTOMAKE@ | 79 | AUTOMAKE = @AUTOMAKE@ | |
79 | AWK = @AWK@ | 80 | AWK = @AWK@ | |
80 | CANONICAL_HOST = @CANONICAL_HOST@ | 81 | CANONICAL_HOST = @CANONICAL_HOST@ | |
81 | CC = @CC@ | 82 | CC = @CC@ | |
82 | CCDEPMODE = @CCDEPMODE@ | 83 | CCDEPMODE = @CCDEPMODE@ | |
83 | CFLAGS = @CFLAGS@ | 84 | CFLAGS = @CFLAGS@ | |
84 | CPP = @CPP@ | 85 | CPP = @CPP@ | |
85 | CPPFLAGS = @CPPFLAGS@ | 86 | CPPFLAGS = @CPPFLAGS@ | |
86 | CXX = @CXX@ | |||
87 | CXXCPP = @CXXCPP@ | |||
88 | CXXDEPMODE = @CXXDEPMODE@ | |||
89 | CXXFLAGS = @CXXFLAGS@ | |||
90 | CYGPATH_W = @CYGPATH_W@ | 87 | CYGPATH_W = @CYGPATH_W@ | |
91 | DEFS = @DEFS@ | 88 | DEFS = @DEFS@ | |
92 | DEPDIR = @DEPDIR@ | 89 | DEPDIR = @DEPDIR@ | |
93 | ECHO = @ECHO@ | 90 | DSYMUTIL = @DSYMUTIL@ | |
91 | DUMPBIN = @DUMPBIN@ | |||
94 | ECHO_C = @ECHO_C@ | 92 | ECHO_C = @ECHO_C@ | |
95 | ECHO_N = @ECHO_N@ | 93 | ECHO_N = @ECHO_N@ | |
96 | ECHO_T = @ECHO_T@ | 94 | ECHO_T = @ECHO_T@ | |
97 | EGREP = @EGREP@ | 95 | EGREP = @EGREP@ | |
98 | EXEEXT = @EXEEXT@ | 96 | EXEEXT = @EXEEXT@ | |
99 | F77 = @F77@ | 97 | FGREP = @FGREP@ | |
100 | FFLAGS = @FFLAGS@ | |||
101 | GREP = @GREP@ | 98 | GREP = @GREP@ | |
102 | INSTALL = @INSTALL@ | 99 | INSTALL = @INSTALL@ | |
103 | INSTALL_DATA = @INSTALL_DATA@ | 100 | INSTALL_DATA = @INSTALL_DATA@ | |
104 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 101 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
105 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | 102 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
106 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | 103 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
104 | LD = @LD@ | |||
107 | LDFLAGS = @LDFLAGS@ | 105 | LDFLAGS = @LDFLAGS@ | |
108 | LIBOBJS = @LIBOBJS@ | 106 | LIBOBJS = @LIBOBJS@ | |
109 | LIBS = @LIBS@ | 107 | LIBS = @LIBS@ | |
110 | LIBTOOL = @LIBTOOL@ | 108 | LIBTOOL = @LIBTOOL@ | |
109 | LIPO = @LIPO@ | |||
111 | LN_S = @LN_S@ | 110 | LN_S = @LN_S@ | |
112 | LTLIBOBJS = @LTLIBOBJS@ | 111 | LTLIBOBJS = @LTLIBOBJS@ | |
113 | MAINT = @MAINT@ | 112 | MAINT = @MAINT@ | |
114 | MAKEINFO = @MAKEINFO@ | 113 | MAKEINFO = @MAKEINFO@ | |
115 | MKDIR_P = @MKDIR_P@ | 114 | MKDIR_P = @MKDIR_P@ | |
115 | NM = @NM@ | |||
116 | NMEDIT = @NMEDIT@ | |||
117 | OBJDUMP = @OBJDUMP@ | |||
116 | OBJEXT = @OBJEXT@ | 118 | OBJEXT = @OBJEXT@ | |
119 | OPENSSL_INCLUDES = @OPENSSL_INCLUDES@ | |||
120 | OPENSSL_LDFLAGS = @OPENSSL_LDFLAGS@ | |||
121 | OPENSSL_LIBS = @OPENSSL_LIBS@ | |||
122 | OTOOL = @OTOOL@ | |||
123 | OTOOL64 = @OTOOL64@ | |||
117 | PACKAGE = @PACKAGE@ | 124 | PACKAGE = @PACKAGE@ | |
118 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | 125 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
119 | PACKAGE_NAME = @PACKAGE_NAME@ | 126 | PACKAGE_NAME = @PACKAGE_NAME@ | |
120 | PACKAGE_STRING = @PACKAGE_STRING@ | 127 | PACKAGE_STRING = @PACKAGE_STRING@ | |
121 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | 128 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
122 | PACKAGE_VERSION = @PACKAGE_VERSION@ | 129 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
123 | PATH_SEPARATOR = @PATH_SEPARATOR@ | 130 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
131 | PKG_CONFIG = @PKG_CONFIG@ | |||
124 | RANLIB = @RANLIB@ | 132 | RANLIB = @RANLIB@ | |
125 | SED = @SED@ | 133 | SED = @SED@ | |
126 | SET_MAKE = @SET_MAKE@ | 134 | SET_MAKE = @SET_MAKE@ | |
127 | SHELL = @SHELL@ | 135 | SHELL = @SHELL@ | |
128 | STRIP = @STRIP@ | 136 | STRIP = @STRIP@ | |
129 | VERSION = @VERSION@ | 137 | VERSION = @VERSION@ | |
130 | WARNCFLAGS = @WARNCFLAGS@ | 138 | WARNCFLAGS = @WARNCFLAGS@ | |
131 | abs_builddir = @abs_builddir@ | 139 | abs_builddir = @abs_builddir@ | |
132 | abs_srcdir = @abs_srcdir@ | 140 | abs_srcdir = @abs_srcdir@ | |
133 | abs_top_builddir = @abs_top_builddir@ | 141 | abs_top_builddir = @abs_top_builddir@ | |
134 | abs_top_srcdir = @abs_top_srcdir@ | 142 | abs_top_srcdir = @abs_top_srcdir@ | |
135 | ac_ct_CC = @ac_ct_CC@ | 143 | ac_ct_CC = @ac_ct_CC@ | |
136 | ac_ct_CXX = @ac_ct_CXX@ | 144 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | |
137 | ac_ct_F77 = @ac_ct_F77@ | |||
138 | am__include = @am__include@ | 145 | am__include = @am__include@ | |
139 | am__leading_dot = @am__leading_dot@ | 146 | am__leading_dot = @am__leading_dot@ | |
140 | am__quote = @am__quote@ | 147 | am__quote = @am__quote@ | |
141 | am__tar = @am__tar@ | 148 | am__tar = @am__tar@ | |
142 | am__untar = @am__untar@ | 149 | am__untar = @am__untar@ | |
143 | bindir = @bindir@ | 150 | bindir = @bindir@ | |
144 | build = @build@ | 151 | build = @build@ | |
145 | build_alias = @build_alias@ | 152 | build_alias = @build_alias@ | |
146 | build_cpu = @build_cpu@ | 153 | build_cpu = @build_cpu@ | |
147 | build_os = @build_os@ | 154 | build_os = @build_os@ | |
148 | build_vendor = @build_vendor@ | 155 | build_vendor = @build_vendor@ | |
149 | builddir = @builddir@ | 156 | builddir = @builddir@ | |
150 | datadir = @datadir@ | 157 | datadir = @datadir@ | |
@@ -155,26 +162,27 @@ exec_prefix = @exec_prefix@ | @@ -155,26 +162,27 @@ exec_prefix = @exec_prefix@ | |||
155 | host = @host@ | 162 | host = @host@ | |
156 | host_alias = @host_alias@ | 163 | host_alias = @host_alias@ | |
157 | host_cpu = @host_cpu@ | 164 | host_cpu = @host_cpu@ | |
158 | host_os = @host_os@ | 165 | host_os = @host_os@ | |
159 | host_vendor = @host_vendor@ | 166 | host_vendor = @host_vendor@ | |
160 | htmldir = @htmldir@ | 167 | htmldir = @htmldir@ | |
161 | includedir = @includedir@ | 168 | includedir = @includedir@ | |
162 | infodir = @infodir@ | 169 | infodir = @infodir@ | |
163 | install_sh = @install_sh@ | 170 | install_sh = @install_sh@ | |
164 | libdir = @libdir@ | 171 | libdir = @libdir@ | |
165 | libexecdir = @libexecdir@ | 172 | libexecdir = @libexecdir@ | |
166 | localedir = @localedir@ | 173 | localedir = @localedir@ | |
167 | localstatedir = @localstatedir@ | 174 | localstatedir = @localstatedir@ | |
175 | lt_ECHO = @lt_ECHO@ | |||
168 | mandir = @mandir@ | 176 | mandir = @mandir@ | |
169 | mkdir_p = @mkdir_p@ | 177 | mkdir_p = @mkdir_p@ | |
170 | oldincludedir = @oldincludedir@ | 178 | oldincludedir = @oldincludedir@ | |
171 | pdfdir = @pdfdir@ | 179 | pdfdir = @pdfdir@ | |
172 | prefix = @prefix@ | 180 | prefix = @prefix@ | |
173 | program_transform_name = @program_transform_name@ | 181 | program_transform_name = @program_transform_name@ | |
174 | psdir = @psdir@ | 182 | psdir = @psdir@ | |
175 | sbindir = @sbindir@ | 183 | sbindir = @sbindir@ | |
176 | sharedstatedir = @sharedstatedir@ | 184 | sharedstatedir = @sharedstatedir@ | |
177 | srcdir = @srcdir@ | 185 | srcdir = @srcdir@ | |
178 | sysconfdir = @sysconfdir@ | 186 | sysconfdir = @sysconfdir@ | |
179 | target_alias = @target_alias@ | 187 | target_alias = @target_alias@ | |
180 | top_build_prefix = @top_build_prefix@ | 188 | top_build_prefix = @top_build_prefix@ |
--- src/crypto/external/bsd/netpgp/dist/src/netpgpkeys/Makefile.in 2009/06/10 00:38:10 1.1
+++ src/crypto/external/bsd/netpgp/dist/src/netpgpkeys/Makefile.in 2010/08/07 04:16:41 1.2
@@ -27,27 +27,28 @@ transform = $(program_transform_name) | @@ -27,27 +27,28 @@ transform = $(program_transform_name) | |||
27 | NORMAL_INSTALL = : | 27 | NORMAL_INSTALL = : | |
28 | PRE_INSTALL = : | 28 | PRE_INSTALL = : | |
29 | POST_INSTALL = : | 29 | POST_INSTALL = : | |
30 | NORMAL_UNINSTALL = : | 30 | NORMAL_UNINSTALL = : | |
31 | PRE_UNINSTALL = : | 31 | PRE_UNINSTALL = : | |
32 | POST_UNINSTALL = : | 32 | POST_UNINSTALL = : | |
33 | build_triplet = @build@ | 33 | build_triplet = @build@ | |
34 | host_triplet = @host@ | 34 | host_triplet = @host@ | |
35 | bin_PROGRAMS = netpgpkeys$(EXEEXT) | 35 | bin_PROGRAMS = netpgpkeys$(EXEEXT) | |
36 | subdir = src/netpgpkeys | 36 | subdir = src/netpgpkeys | |
37 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | 37 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | |
38 | $(srcdir)/Makefile.in | 38 | $(srcdir)/Makefile.in | |
39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
40 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | 40 | am__aclocal_m4_deps = $(top_srcdir)/ax_check_openssl.m4 \ | |
41 | $(top_srcdir)/configure.ac | |||
41 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 42 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
42 | $(ACLOCAL_M4) | 43 | $(ACLOCAL_M4) | |
43 | mkinstalldirs = $(install_sh) -d | 44 | mkinstalldirs = $(install_sh) -d | |
44 | CONFIG_HEADER = $(top_builddir)/src/lib/config.h | 45 | CONFIG_HEADER = $(top_builddir)/src/lib/config.h | |
45 | CONFIG_CLEAN_FILES = | 46 | CONFIG_CLEAN_FILES = | |
46 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" | 47 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" | |
47 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | 48 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | |
48 | PROGRAMS = $(bin_PROGRAMS) | 49 | PROGRAMS = $(bin_PROGRAMS) | |
49 | am_netpgpkeys_OBJECTS = netpgpkeys-netpgpkeys.$(OBJEXT) | 50 | am_netpgpkeys_OBJECTS = netpgpkeys-netpgpkeys.$(OBJEXT) | |
50 | netpgpkeys_OBJECTS = $(am_netpgpkeys_OBJECTS) | 51 | netpgpkeys_OBJECTS = $(am_netpgpkeys_OBJECTS) | |
51 | netpgpkeys_DEPENDENCIES = ../lib/libnetpgp.la | 52 | netpgpkeys_DEPENDENCIES = ../lib/libnetpgp.la | |
52 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src/lib | 53 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src/lib | |
53 | depcomp = $(SHELL) $(top_srcdir)/buildaux/depcomp | 54 | depcomp = $(SHELL) $(top_srcdir)/buildaux/depcomp | |
@@ -73,78 +74,84 @@ ACLOCAL = @ACLOCAL@ | @@ -73,78 +74,84 @@ ACLOCAL = @ACLOCAL@ | |||
73 | AMTAR = @AMTAR@ | 74 | AMTAR = @AMTAR@ | |
74 | AR = @AR@ | 75 | AR = @AR@ | |
75 | AUTOCONF = @AUTOCONF@ | 76 | AUTOCONF = @AUTOCONF@ | |
76 | AUTOHEADER = @AUTOHEADER@ | 77 | AUTOHEADER = @AUTOHEADER@ | |
77 | AUTOM4TE = @AUTOM4TE@ | 78 | AUTOM4TE = @AUTOM4TE@ | |
78 | AUTOMAKE = @AUTOMAKE@ | 79 | AUTOMAKE = @AUTOMAKE@ | |
79 | AWK = @AWK@ | 80 | AWK = @AWK@ | |
80 | CANONICAL_HOST = @CANONICAL_HOST@ | 81 | CANONICAL_HOST = @CANONICAL_HOST@ | |
81 | CC = @CC@ | 82 | CC = @CC@ | |
82 | CCDEPMODE = @CCDEPMODE@ | 83 | CCDEPMODE = @CCDEPMODE@ | |
83 | CFLAGS = @CFLAGS@ | 84 | CFLAGS = @CFLAGS@ | |
84 | CPP = @CPP@ | 85 | CPP = @CPP@ | |
85 | CPPFLAGS = @CPPFLAGS@ | 86 | CPPFLAGS = @CPPFLAGS@ | |
86 | CXX = @CXX@ | |||
87 | CXXCPP = @CXXCPP@ | |||
88 | CXXDEPMODE = @CXXDEPMODE@ | |||
89 | CXXFLAGS = @CXXFLAGS@ | |||
90 | CYGPATH_W = @CYGPATH_W@ | 87 | CYGPATH_W = @CYGPATH_W@ | |
91 | DEFS = @DEFS@ | 88 | DEFS = @DEFS@ | |
92 | DEPDIR = @DEPDIR@ | 89 | DEPDIR = @DEPDIR@ | |
93 | ECHO = @ECHO@ | 90 | DSYMUTIL = @DSYMUTIL@ | |
91 | DUMPBIN = @DUMPBIN@ | |||
94 | ECHO_C = @ECHO_C@ | 92 | ECHO_C = @ECHO_C@ | |
95 | ECHO_N = @ECHO_N@ | 93 | ECHO_N = @ECHO_N@ | |
96 | ECHO_T = @ECHO_T@ | 94 | ECHO_T = @ECHO_T@ | |
97 | EGREP = @EGREP@ | 95 | EGREP = @EGREP@ | |
98 | EXEEXT = @EXEEXT@ | 96 | EXEEXT = @EXEEXT@ | |
99 | F77 = @F77@ | 97 | FGREP = @FGREP@ | |
100 | FFLAGS = @FFLAGS@ | |||
101 | GREP = @GREP@ | 98 | GREP = @GREP@ | |
102 | INSTALL = @INSTALL@ | 99 | INSTALL = @INSTALL@ | |
103 | INSTALL_DATA = @INSTALL_DATA@ | 100 | INSTALL_DATA = @INSTALL_DATA@ | |
104 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 101 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
105 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | 102 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
106 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | 103 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
104 | LD = @LD@ | |||
107 | LDFLAGS = @LDFLAGS@ | 105 | LDFLAGS = @LDFLAGS@ | |
108 | LIBOBJS = @LIBOBJS@ | 106 | LIBOBJS = @LIBOBJS@ | |
109 | LIBS = @LIBS@ | 107 | LIBS = @LIBS@ | |
110 | LIBTOOL = @LIBTOOL@ | 108 | LIBTOOL = @LIBTOOL@ | |
109 | LIPO = @LIPO@ | |||
111 | LN_S = @LN_S@ | 110 | LN_S = @LN_S@ | |
112 | LTLIBOBJS = @LTLIBOBJS@ | 111 | LTLIBOBJS = @LTLIBOBJS@ | |
113 | MAINT = @MAINT@ | 112 | MAINT = @MAINT@ | |
114 | MAKEINFO = @MAKEINFO@ | 113 | MAKEINFO = @MAKEINFO@ | |
115 | MKDIR_P = @MKDIR_P@ | 114 | MKDIR_P = @MKDIR_P@ | |
115 | NM = @NM@ | |||
116 | NMEDIT = @NMEDIT@ | |||
117 | OBJDUMP = @OBJDUMP@ | |||
116 | OBJEXT = @OBJEXT@ | 118 | OBJEXT = @OBJEXT@ | |
119 | OPENSSL_INCLUDES = @OPENSSL_INCLUDES@ | |||
120 | OPENSSL_LDFLAGS = @OPENSSL_LDFLAGS@ | |||
121 | OPENSSL_LIBS = @OPENSSL_LIBS@ | |||
122 | OTOOL = @OTOOL@ | |||
123 | OTOOL64 = @OTOOL64@ | |||
117 | PACKAGE = @PACKAGE@ | 124 | PACKAGE = @PACKAGE@ | |
118 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | 125 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
119 | PACKAGE_NAME = @PACKAGE_NAME@ | 126 | PACKAGE_NAME = @PACKAGE_NAME@ | |
120 | PACKAGE_STRING = @PACKAGE_STRING@ | 127 | PACKAGE_STRING = @PACKAGE_STRING@ | |
121 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | 128 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
122 | PACKAGE_VERSION = @PACKAGE_VERSION@ | 129 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
123 | PATH_SEPARATOR = @PATH_SEPARATOR@ | 130 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
131 | PKG_CONFIG = @PKG_CONFIG@ | |||
124 | RANLIB = @RANLIB@ | 132 | RANLIB = @RANLIB@ | |
125 | SED = @SED@ | 133 | SED = @SED@ | |
126 | SET_MAKE = @SET_MAKE@ | 134 | SET_MAKE = @SET_MAKE@ | |
127 | SHELL = @SHELL@ | 135 | SHELL = @SHELL@ | |
128 | STRIP = @STRIP@ | 136 | STRIP = @STRIP@ | |
129 | VERSION = @VERSION@ | 137 | VERSION = @VERSION@ | |
130 | WARNCFLAGS = @WARNCFLAGS@ | 138 | WARNCFLAGS = @WARNCFLAGS@ | |
131 | abs_builddir = @abs_builddir@ | 139 | abs_builddir = @abs_builddir@ | |
132 | abs_srcdir = @abs_srcdir@ | 140 | abs_srcdir = @abs_srcdir@ | |
133 | abs_top_builddir = @abs_top_builddir@ | 141 | abs_top_builddir = @abs_top_builddir@ | |
134 | abs_top_srcdir = @abs_top_srcdir@ | 142 | abs_top_srcdir = @abs_top_srcdir@ | |
135 | ac_ct_CC = @ac_ct_CC@ | 143 | ac_ct_CC = @ac_ct_CC@ | |
136 | ac_ct_CXX = @ac_ct_CXX@ | 144 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | |
137 | ac_ct_F77 = @ac_ct_F77@ | |||
138 | am__include = @am__include@ | 145 | am__include = @am__include@ | |
139 | am__leading_dot = @am__leading_dot@ | 146 | am__leading_dot = @am__leading_dot@ | |
140 | am__quote = @am__quote@ | 147 | am__quote = @am__quote@ | |
141 | am__tar = @am__tar@ | 148 | am__tar = @am__tar@ | |
142 | am__untar = @am__untar@ | 149 | am__untar = @am__untar@ | |
143 | bindir = @bindir@ | 150 | bindir = @bindir@ | |
144 | build = @build@ | 151 | build = @build@ | |
145 | build_alias = @build_alias@ | 152 | build_alias = @build_alias@ | |
146 | build_cpu = @build_cpu@ | 153 | build_cpu = @build_cpu@ | |
147 | build_os = @build_os@ | 154 | build_os = @build_os@ | |
148 | build_vendor = @build_vendor@ | 155 | build_vendor = @build_vendor@ | |
149 | builddir = @builddir@ | 156 | builddir = @builddir@ | |
150 | datadir = @datadir@ | 157 | datadir = @datadir@ | |
@@ -155,26 +162,27 @@ exec_prefix = @exec_prefix@ | @@ -155,26 +162,27 @@ exec_prefix = @exec_prefix@ | |||
155 | host = @host@ | 162 | host = @host@ | |
156 | host_alias = @host_alias@ | 163 | host_alias = @host_alias@ | |
157 | host_cpu = @host_cpu@ | 164 | host_cpu = @host_cpu@ | |
158 | host_os = @host_os@ | 165 | host_os = @host_os@ | |
159 | host_vendor = @host_vendor@ | 166 | host_vendor = @host_vendor@ | |
160 | htmldir = @htmldir@ | 167 | htmldir = @htmldir@ | |
161 | includedir = @includedir@ | 168 | includedir = @includedir@ | |
162 | infodir = @infodir@ | 169 | infodir = @infodir@ | |
163 | install_sh = @install_sh@ | 170 | install_sh = @install_sh@ | |
164 | libdir = @libdir@ | 171 | libdir = @libdir@ | |
165 | libexecdir = @libexecdir@ | 172 | libexecdir = @libexecdir@ | |
166 | localedir = @localedir@ | 173 | localedir = @localedir@ | |
167 | localstatedir = @localstatedir@ | 174 | localstatedir = @localstatedir@ | |
175 | lt_ECHO = @lt_ECHO@ | |||
168 | mandir = @mandir@ | 176 | mandir = @mandir@ | |
169 | mkdir_p = @mkdir_p@ | 177 | mkdir_p = @mkdir_p@ | |
170 | oldincludedir = @oldincludedir@ | 178 | oldincludedir = @oldincludedir@ | |
171 | pdfdir = @pdfdir@ | 179 | pdfdir = @pdfdir@ | |
172 | prefix = @prefix@ | 180 | prefix = @prefix@ | |
173 | program_transform_name = @program_transform_name@ | 181 | program_transform_name = @program_transform_name@ | |
174 | psdir = @psdir@ | 182 | psdir = @psdir@ | |
175 | sbindir = @sbindir@ | 183 | sbindir = @sbindir@ | |
176 | sharedstatedir = @sharedstatedir@ | 184 | sharedstatedir = @sharedstatedir@ | |
177 | srcdir = @srcdir@ | 185 | srcdir = @srcdir@ | |
178 | sysconfdir = @sysconfdir@ | 186 | sysconfdir = @sysconfdir@ | |
179 | target_alias = @target_alias@ | 187 | target_alias = @target_alias@ | |
180 | top_build_prefix = @top_build_prefix@ | 188 | top_build_prefix = @top_build_prefix@ |
--- src/crypto/external/bsd/netpgp/dist/src/netpgpkeys/netpgpkeys.c 2010/07/01 04:27:21 1.14
+++ src/crypto/external/bsd/netpgp/dist/src/netpgpkeys/netpgpkeys.c 2010/08/07 04:16:41 1.15
@@ -23,31 +23,33 @@ | @@ -23,31 +23,33 @@ | |||
23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
27 | * POSSIBILITY OF SUCH DAMAGE. | 27 | * POSSIBILITY OF SUCH DAMAGE. | |
28 | */ | 28 | */ | |
29 | 29 | |||
30 | /* Command line program to perform netpgp operations */ | 30 | /* Command line program to perform netpgp operations */ | |
31 | #include <sys/types.h> | 31 | #include <sys/types.h> | |
32 | #include <sys/param.h> | 32 | #include <sys/param.h> | |
33 | #include <sys/stat.h> | 33 | #include <sys/stat.h> | |
34 | 34 | |||
35 | #include <getopt.h> | 35 | #include <getopt.h> | |
36 | #include <stdarg.h> | |||
36 | #include <stdio.h> | 37 | #include <stdio.h> | |
37 | #include <stdlib.h> | 38 | #include <stdlib.h> | |
38 | #include <string.h> | 39 | #include <string.h> | |
39 | #include <unistd.h> | 40 | #include <unistd.h> | |
40 | 41 | |||
42 | #include <mj.h> | |||
41 | #include <netpgp.h> | 43 | #include <netpgp.h> | |
42 | 44 | |||
43 | /* | 45 | /* | |
44 | * 2048 is the absolute minimum, really - we should really look at | 46 | * 2048 is the absolute minimum, really - we should really look at | |
45 | * bumping this to 4096 or even higher - agc, 20090522 | 47 | * bumping this to 4096 or even higher - agc, 20090522 | |
46 | */ | 48 | */ | |
47 | #define DEFAULT_NUMBITS 2048 | 49 | #define DEFAULT_NUMBITS 2048 | |
48 | 50 | |||
49 | #define DEFAULT_HASH_ALG "SHA256" | 51 | #define DEFAULT_HASH_ALG "SHA256" | |
50 | 52 | |||
51 | static const char *usage = | 53 | static const char *usage = | |
52 | " --help OR\n" | 54 | " --help OR\n" | |
53 | "\t--export-keys [options] OR\n" | 55 | "\t--export-keys [options] OR\n" | |
@@ -146,37 +148,220 @@ typedef struct prog_t { | @@ -146,37 +148,220 @@ typedef struct prog_t { | |||
146 | 148 | |||
147 | /* print a usage message */ | 149 | /* print a usage message */ | |
148 | static void | 150 | static void | |
149 | print_usage(const char *usagemsg, char *progname) | 151 | print_usage(const char *usagemsg, char *progname) | |
150 | { | 152 | { | |
151 | (void) fprintf(stderr, | 153 | (void) fprintf(stderr, | |
152 | "%s\nAll bug reports, praise and chocolate, please, to:\n%s\n", | 154 | "%s\nAll bug reports, praise and chocolate, please, to:\n%s\n", | |
153 | netpgp_get_info("version"), | 155 | netpgp_get_info("version"), | |
154 | netpgp_get_info("maintainer")); | 156 | netpgp_get_info("maintainer")); | |
155 | (void) fprintf(stderr, "Usage: %s COMMAND OPTIONS:\n%s %s", | 157 | (void) fprintf(stderr, "Usage: %s COMMAND OPTIONS:\n%s %s", | |
156 | progname, progname, usagemsg); | 158 | progname, progname, usagemsg); | |
157 | } | 159 | } | |
158 | 160 | |||
161 | /* vararg print function */ | |||
162 | static void | |||
163 | p(FILE *fp, char *s, ...) | |||
164 | { | |||
165 | va_list args; | |||
166 | ||||
167 | va_start(args, s); | |||
168 | while (s != NULL) { | |||
169 | (void) fprintf(fp, "%s", s); | |||
170 | s = va_arg(args, char *); | |||
171 | } | |||
172 | va_end(args); | |||
173 | } | |||
174 | ||||
175 | /* print a JSON object to the FILE stream */ | |||
176 | static void | |||
177 | pobj(FILE *fp, mj_t *obj, int depth) | |||
178 | { | |||
179 | int i; | |||
180 | ||||
181 | for (i = 0 ; i < depth ; i++) { | |||
182 | p(fp, " ", NULL); | |||
183 | } | |||
184 | switch(obj->type) { | |||
185 | case MJ_NULL: | |||
186 | case MJ_FALSE: | |||
187 | case MJ_TRUE: | |||
188 | p(fp, (obj->type == MJ_NULL) ? "null" : (obj->type == MJ_FALSE) ? "false" : "true", NULL); | |||
189 | break; | |||
190 | case MJ_NUMBER: | |||
191 | p(fp, obj->value.s, NULL); | |||
192 | break; | |||
193 | case MJ_STRING: | |||
194 | (void) fprintf(fp, "%.*s", (int)(obj->c), obj->value.s); | |||
195 | break; | |||
196 | case MJ_ARRAY: | |||
197 | for (i = 0 ; i < obj->c ; i++) { | |||
198 | pobj(fp, &obj->value.v[i], depth + 1); | |||
199 | if (i < obj->c - 1) { | |||
200 | (void) fprintf(fp, ", "); | |||
201 | } | |||
202 | } | |||
203 | (void) fprintf(fp, "\n"); | |||
204 | break; | |||
205 | case MJ_OBJECT: | |||
206 | for (i = 0 ; i < obj->c ; i += 2) { | |||
207 | pobj(fp, &obj->value.v[i], depth + 1); | |||
208 | p(fp, ": ", NULL); | |||
209 | pobj(fp, &obj->value.v[i + 1], 0); | |||
210 | if (i < obj->c - 1) { | |||
211 | p(fp, ", ", NULL); | |||
212 | } | |||
213 | } | |||
214 | p(fp, "\n", NULL); | |||
215 | break; | |||
216 | default: | |||
217 | break; | |||
218 | } | |||
219 | } | |||
220 | ||||
221 | /* return the time as a string */ | |||
222 | static char * | |||
223 | ptimestr(char *dest, size_t size, time_t t) | |||
224 | { | |||
225 | struct tm *tm; | |||
226 | ||||
227 | tm = gmtime(&t); | |||
228 | (void) snprintf(dest, size, "%04d-%02d-%02d", | |||
229 | tm->tm_year + 1900, | |||
230 | tm->tm_mon + 1, | |||
231 | tm->tm_mday); | |||
232 | return dest; | |||
233 | } | |||
234 | ||||
235 | /* format a JSON object */ | |||
236 | static void | |||
237 | formatobj(FILE *fp, mj_t *obj, const int psigs) | |||
238 | { | |||
239 | int64_t birthtime; | |||
240 | int64_t duration; | |||
241 | time_t now; | |||
242 | char tbuf[32]; | |||
243 | char *s; | |||
244 | mj_t *sub; | |||
245 | int r; | |||
246 | int i; | |||
247 | ||||
248 | if (__ops_get_debug_level(__FILE__)) { | |||
249 | mj_asprint(&s, obj); | |||
250 | (void) fprintf(stderr, "formatobj: json is '%s'\n", s); | |||
251 | free(s); | |||
252 | } | |||
253 | pobj(fp, &obj->value.v[mj_object_find(obj, "header", 0, 2) + 1], 0); | |||
254 | p(fp, " ", NULL); | |||
255 | pobj(fp, &obj->value.v[mj_object_find(obj, "key bits", 0, 2) + 1], 0); | |||
256 | p(fp, "/", NULL); | |||
257 | pobj(fp, &obj->value.v[mj_object_find(obj, "pka", 0, 2) + 1], 0); | |||
258 | p(fp, " ", NULL); | |||
259 | pobj(fp, &obj->value.v[mj_object_find(obj, "key id", 0, 2) + 1], 0); | |||
260 | birthtime = strtoll(obj->value.v[mj_object_find(obj, "birthtime", 0, 2) + 1].value.s, NULL, 10); | |||
261 | p(fp, " ", ptimestr(tbuf, sizeof(tbuf), birthtime), NULL); | |||
262 | duration = strtoll(obj->value.v[mj_object_find(obj, "duration", 0, 2) + 1].value.s, NULL, 10); | |||
263 | if (duration > 0) { | |||
264 | now = time(NULL); | |||
265 | p(fp, " ", (birthtime + duration < now) ? "[EXPIRED " : "[EXPIRES ", | |||
266 | ptimestr(tbuf, sizeof(tbuf), birthtime + duration), "]", NULL); | |||
267 | } | |||
268 | p(fp, "\n", "Key fingerprint: ", NULL); | |||
269 | pobj(fp, &obj->value.v[mj_object_find(obj, "fingerprint", 0, 2) + 1], 0); | |||
270 | p(fp, "\n", NULL); | |||
271 | /* go to field after \"duration\" */ | |||
272 | for (i = mj_object_find(obj, "duration", 0, 2) + 2; i < mj_arraycount(obj) ; i += 2) { | |||
273 | if (strcmp(obj->value.v[i].value.s, "uid") == 0) { | |||
274 | sub = &obj->value.v[i + 1]; | |||
275 | p(fp, "uid", NULL); | |||
276 | pobj(fp, &sub->value.v[0], (psigs) ? 4 : 14); /* human name */ | |||
277 | pobj(fp, &sub->value.v[1], 1); /* any revocation */ | |||
278 | p(fp, "\n", NULL); | |||
279 | } else if (strcmp(obj->value.v[i].value.s, "sub") == 0) { | |||
280 | sub = &obj->value.v[i + 1]; | |||
281 | p(fp, "sub", NULL); | |||
282 | pobj(fp, &sub->value.v[0], 1); /* size */ | |||
283 | p(fp, "/", NULL); | |||
284 | pobj(fp, &sub->value.v[1], 0); /* alg */ | |||
285 | p(fp, " ", NULL); | |||
286 | pobj(fp, &sub->value.v[2], 0); /* id */ | |||
287 | p(fp, " ", ptimestr(tbuf, sizeof(tbuf), strtoll(sub->value.v[3].value.s, NULL, 10)), | |||
288 | "\n", NULL); | |||
289 | } else if (strcmp(obj->value.v[i].value.s, "sig") == 0) { | |||
290 | sub = &obj->value.v[i + 1]; | |||
291 | p(fp, "sig", NULL); | |||
292 | pobj(fp, &sub->value.v[0], 8); /* size */ | |||
293 | p(fp, " ", ptimestr(tbuf, sizeof(tbuf), strtoll(sub->value.v[1].value.s, NULL, 10)), | |||
294 | " ", NULL); /* time */ | |||
295 | pobj(fp, &sub->value.v[2], 0); /* human name */ | |||
296 | p(fp, "\n", NULL); | |||
297 | } else { | |||
298 | fprintf(stderr, "weird '%s'\n", obj->value.v[i].value.s); | |||
299 | pobj(fp, &obj->value.v[i], 0); /* human name */ | |||
300 | } | |||
301 | } | |||
302 | p(fp, "\n", NULL); | |||
303 | } | |||
304 | ||||
305 | /* match keys, decoding from json if we do find any */ | |||
306 | static int | |||
307 | match_keys(netpgp_t *netpgp, FILE *fp, char *f, const int psigs) | |||
308 | { | |||
309 | char *json; | |||
310 | mj_t ids; | |||
311 | int from; | |||
312 | int idc; | |||
313 | int tok; | |||
314 | int to; | |||
315 | int i; | |||
316 | ||||
317 | if (f == NULL) { | |||
318 | if (!netpgp_list_keys_json(netpgp, &json, psigs)) { | |||
319 | return 0; | |||
320 | } | |||
321 | } else { | |||
322 | if (netpgp_match_keys_json(netpgp, &json, f, "human", psigs) == 0) { | |||
323 | return 0; | |||
324 | } | |||
325 | } | |||
326 | if (__ops_get_debug_level(__FILE__)) { | |||
327 | (void) fprintf(stderr, "match_keys: json is '%s'\n", json); | |||
328 | } | |||
329 | /* ids is an array of strings, each containing 1 entry */ | |||
330 | (void) memset(&ids, 0x0, sizeof(ids)); | |||
331 | from = to = tok = 0; | |||
332 | /* convert from string into an mj structure */ | |||
333 | (void) mj_parse(&ids, json, &from, &to, &tok); | |||
334 | idc = mj_arraycount(&ids); | |||
335 | (void) fprintf(fp, "%d key%s found\n", idc, (idc == 1) ? "" : "s"); | |||
336 | for (i = 0 ; i < idc ; i++) { | |||
337 | formatobj(fp, &ids.value.v[i], psigs); | |||
338 | } | |||
339 | /* clean up */ | |||
340 | free(json); | |||
341 | mj_delete(&ids); | |||
342 | return idc; | |||
343 | } | |||
344 | ||||
159 | /* do a command once for a specified file 'f' */ | 345 | /* do a command once for a specified file 'f' */ | |
160 | static int | 346 | static int | |
161 | netpgp_cmd(netpgp_t *netpgp, prog_t *p, char *f) | 347 | netpgp_cmd(netpgp_t *netpgp, prog_t *p, char *f) | |
162 | { | 348 | { | |
163 | char *key; | 349 | char *key; | |
164 | 350 | |||
165 | switch (p->cmd) { | 351 | switch (p->cmd) { | |
166 | case LIST_KEYS: | 352 | case LIST_KEYS: | |
167 | return (f == NULL) ? netpgp_list_keys(netpgp, 0) : netpgp_match_keys(netpgp, f, "human", stdout, 0); | |||
168 | case LIST_SIGS: | 353 | case LIST_SIGS: | |
169 | return (f == NULL) ? netpgp_list_keys(netpgp, 1) : netpgp_match_keys(netpgp, f, "human", stdout, 1); | 354 | return match_keys(netpgp, stdout, f, (p->cmd == LIST_SIGS)); | |
170 | case FIND_KEY: | 355 | case FIND_KEY: | |
171 | return netpgp_find_key(netpgp, netpgp_getvar(netpgp, "userid")); | 356 | return netpgp_find_key(netpgp, netpgp_getvar(netpgp, "userid")); | |
172 | case EXPORT_KEY: | 357 | case EXPORT_KEY: | |
173 | key = netpgp_export_key(netpgp, netpgp_getvar(netpgp, "userid")); | 358 | key = netpgp_export_key(netpgp, netpgp_getvar(netpgp, "userid")); | |
174 | if (key) { | 359 | if (key) { | |
175 | printf("%s", key); | 360 | printf("%s", key); | |
176 | return 1; | 361 | return 1; | |
177 | } | 362 | } | |
178 | (void) fprintf(stderr, "key '%s' not found\n", f); | 363 | (void) fprintf(stderr, "key '%s' not found\n", f); | |
179 | return 0; | 364 | return 0; | |
180 | case IMPORT_KEY: | 365 | case IMPORT_KEY: | |
181 | return netpgp_import_key(netpgp, f); | 366 | return netpgp_import_key(netpgp, f); | |
182 | case GENERATE_KEY: | 367 | case GENERATE_KEY: |
--- src/crypto/external/bsd/netpgp/dist/src/netpgpverify/Makefile 2010/07/09 05:36:29 1.15
+++ src/crypto/external/bsd/netpgp/dist/src/netpgpverify/Makefile 2010/08/07 04:16:41 1.16
@@ -108,36 +108,36 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c | @@ -108,36 +108,36 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c | |||
108 | LDFLAGS = | 108 | LDFLAGS = | |
109 | LIBOBJS = | 109 | LIBOBJS = | |
110 | LIBS = -lcrypto -lbz2 -lz | 110 | LIBS = -lcrypto -lbz2 -lz | |
111 | LIBTOOL = $(SHELL) $(top_builddir)/libtool | 111 | LIBTOOL = $(SHELL) $(top_builddir)/libtool | |
112 | LN_S = ln -s | 112 | LN_S = ln -s | |
113 | LTLIBOBJS = | 113 | LTLIBOBJS = | |
114 | MAINT = # | 114 | MAINT = # | |
115 | MAKEINFO = ${SHELL} /usr/src/crypto/external/bsd/netpgp/dist/buildaux/missing --run makeinfo | 115 | MAKEINFO = ${SHELL} /usr/src/crypto/external/bsd/netpgp/dist/buildaux/missing --run makeinfo | |
116 | MKDIR_P = ../../buildaux/install-sh -c -d | 116 | MKDIR_P = ../../buildaux/install-sh -c -d | |
117 | OBJEXT = o | 117 | OBJEXT = o | |
118 | PACKAGE = netpgp | 118 | PACKAGE = netpgp | |
119 | PACKAGE_BUGREPORT = Alistair Crooks <agc@netbsd.org> c0596823 | 119 | PACKAGE_BUGREPORT = Alistair Crooks <agc@netbsd.org> c0596823 | |
120 | PACKAGE_NAME = netpgp | 120 | PACKAGE_NAME = netpgp | |
121 | PACKAGE_STRING = netpgp 20100707 | 121 | PACKAGE_STRING = netpgp 20100708 | |
122 | PACKAGE_TARNAME = netpgp | 122 | PACKAGE_TARNAME = netpgp | |
123 | PACKAGE_VERSION = 20100707 | 123 | PACKAGE_VERSION = 20100708 | |
124 | PATH_SEPARATOR = : | 124 | PATH_SEPARATOR = : | |
125 | RANLIB = ranlib | 125 | RANLIB = ranlib | |
126 | SED = /usr/bin/sed | 126 | SED = /usr/bin/sed | |
127 | SET_MAKE = | 127 | SET_MAKE = | |
128 | SHELL = /bin/ksh | 128 | SHELL = /bin/ksh | |
129 | STRIP = strip | 129 | STRIP = strip | |
130 | VERSION = 20100707 | 130 | VERSION = 20100708 | |
131 | WARNCFLAGS = -Werror -Wall -Wpointer-arith | 131 | WARNCFLAGS = -Werror -Wall -Wpointer-arith | |
132 | abs_builddir = /usr/src/crypto/external/bsd/netpgp/dist/src/netpgpverify | 132 | abs_builddir = /usr/src/crypto/external/bsd/netpgp/dist/src/netpgpverify | |
133 | abs_srcdir = /usr/src/crypto/external/bsd/netpgp/dist/src/netpgpverify | 133 | abs_srcdir = /usr/src/crypto/external/bsd/netpgp/dist/src/netpgpverify | |
134 | abs_top_builddir = /usr/src/crypto/external/bsd/netpgp/dist | 134 | abs_top_builddir = /usr/src/crypto/external/bsd/netpgp/dist | |
135 | abs_top_srcdir = /usr/src/crypto/external/bsd/netpgp/dist | 135 | abs_top_srcdir = /usr/src/crypto/external/bsd/netpgp/dist | |
136 | ac_ct_CC = gcc | 136 | ac_ct_CC = gcc | |
137 | ac_ct_CXX = g++ | 137 | ac_ct_CXX = g++ | |
138 | ac_ct_F77 = | 138 | ac_ct_F77 = | |
139 | am__include = include | 139 | am__include = include | |
140 | am__leading_dot = . | 140 | am__leading_dot = . | |
141 | am__quote = | 141 | am__quote = | |
142 | am__tar = ${AMTAR} chof - "$$tardir" | 142 | am__tar = ${AMTAR} chof - "$$tardir" | |
143 | am__untar = ${AMTAR} xf - | 143 | am__untar = ${AMTAR} xf - |
--- src/crypto/external/bsd/netpgp/dist/src/netpgpverify/Makefile.in 2010/05/31 06:09:41 1.3
+++ src/crypto/external/bsd/netpgp/dist/src/netpgpverify/Makefile.in 2010/08/07 04:16:41 1.4
@@ -27,39 +27,39 @@ transform = $(program_transform_name) | @@ -27,39 +27,39 @@ transform = $(program_transform_name) | |||
27 | NORMAL_INSTALL = : | 27 | NORMAL_INSTALL = : | |
28 | PRE_INSTALL = : | 28 | PRE_INSTALL = : | |
29 | POST_INSTALL = : | 29 | POST_INSTALL = : | |
30 | NORMAL_UNINSTALL = : | 30 | NORMAL_UNINSTALL = : | |
31 | PRE_UNINSTALL = : | 31 | PRE_UNINSTALL = : | |
32 | POST_UNINSTALL = : | 32 | POST_UNINSTALL = : | |
33 | build_triplet = @build@ | 33 | build_triplet = @build@ | |
34 | host_triplet = @host@ | 34 | host_triplet = @host@ | |
35 | bin_PROGRAMS = netpgpverify$(EXEEXT) | 35 | bin_PROGRAMS = netpgpverify$(EXEEXT) | |
36 | subdir = src/netpgpverify | 36 | subdir = src/netpgpverify | |
37 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | 37 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | |
38 | $(srcdir)/Makefile.in | 38 | $(srcdir)/Makefile.in | |
39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
40 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | 40 | am__aclocal_m4_deps = $(top_srcdir)/ax_check_openssl.m4 \ | |
41 | $(top_srcdir)/configure.ac | |||
41 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 42 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
42 | $(ACLOCAL_M4) | 43 | $(ACLOCAL_M4) | |
43 | mkinstalldirs = $(install_sh) -d | 44 | mkinstalldirs = $(install_sh) -d | |
44 | CONFIG_HEADER = $(top_builddir)/src/lib/config.h | 45 | CONFIG_HEADER = $(top_builddir)/src/lib/config.h | |
45 | CONFIG_CLEAN_FILES = | 46 | CONFIG_CLEAN_FILES = | |
46 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" | 47 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" | |
47 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | 48 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | |
48 | PROGRAMS = $(bin_PROGRAMS) | 49 | PROGRAMS = $(bin_PROGRAMS) | |
49 | am_netpgpverify_OBJECTS = netpgpverify-verify.$(OBJEXT) | 50 | am_netpgpverify_OBJECTS = netpgpverify-verify.$(OBJEXT) | |
50 | netpgpverify_OBJECTS = $(am_netpgpverify_OBJECTS) | 51 | netpgpverify_OBJECTS = $(am_netpgpverify_OBJECTS) | |
51 | netpgpverify_DEPENDENCIES = ../lib/libnetpgp.la | 52 | netpgpverify_DEPENDENCIES = ../lib/libnetpgp.la | |
52 | netpgpverify_LDADD = ../lib/libnetpgp.la | |||
53 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src/lib | 53 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src/lib | |
54 | depcomp = $(SHELL) $(top_srcdir)/buildaux/depcomp | 54 | depcomp = $(SHELL) $(top_srcdir)/buildaux/depcomp | |
55 | am__depfiles_maybe = depfiles | 55 | am__depfiles_maybe = depfiles | |
56 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | 56 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | |
57 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | 57 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
58 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | 58 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
59 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | 59 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | |
60 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | 60 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
61 | CCLD = $(CC) | 61 | CCLD = $(CC) | |
62 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | 62 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
63 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | 63 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | |
64 | $(LDFLAGS) -o $@ | 64 | $(LDFLAGS) -o $@ | |
65 | SOURCES = $(netpgpverify_SOURCES) | 65 | SOURCES = $(netpgpverify_SOURCES) | |
@@ -74,78 +74,84 @@ ACLOCAL = @ACLOCAL@ | @@ -74,78 +74,84 @@ ACLOCAL = @ACLOCAL@ | |||
74 | AMTAR = @AMTAR@ | 74 | AMTAR = @AMTAR@ | |
75 | AR = @AR@ | 75 | AR = @AR@ | |
76 | AUTOCONF = @AUTOCONF@ | 76 | AUTOCONF = @AUTOCONF@ | |
77 | AUTOHEADER = @AUTOHEADER@ | 77 | AUTOHEADER = @AUTOHEADER@ | |
78 | AUTOM4TE = @AUTOM4TE@ | 78 | AUTOM4TE = @AUTOM4TE@ | |
79 | AUTOMAKE = @AUTOMAKE@ | 79 | AUTOMAKE = @AUTOMAKE@ | |
80 | AWK = @AWK@ | 80 | AWK = @AWK@ | |
81 | CANONICAL_HOST = @CANONICAL_HOST@ | 81 | CANONICAL_HOST = @CANONICAL_HOST@ | |
82 | CC = @CC@ | 82 | CC = @CC@ | |
83 | CCDEPMODE = @CCDEPMODE@ | 83 | CCDEPMODE = @CCDEPMODE@ | |
84 | CFLAGS = @CFLAGS@ | 84 | CFLAGS = @CFLAGS@ | |
85 | CPP = @CPP@ | 85 | CPP = @CPP@ | |
86 | CPPFLAGS = @CPPFLAGS@ | 86 | CPPFLAGS = @CPPFLAGS@ | |
87 | CXX = @CXX@ | |||
88 | CXXCPP = @CXXCPP@ | |||
89 | CXXDEPMODE = @CXXDEPMODE@ | |||
90 | CXXFLAGS = @CXXFLAGS@ | |||
91 | CYGPATH_W = @CYGPATH_W@ | 87 | CYGPATH_W = @CYGPATH_W@ | |
92 | DEFS = @DEFS@ | 88 | DEFS = @DEFS@ | |
93 | DEPDIR = @DEPDIR@ | 89 | DEPDIR = @DEPDIR@ | |
94 | ECHO = @ECHO@ | 90 | DSYMUTIL = @DSYMUTIL@ | |
91 | DUMPBIN = @DUMPBIN@ | |||
95 | ECHO_C = @ECHO_C@ | 92 | ECHO_C = @ECHO_C@ | |
96 | ECHO_N = @ECHO_N@ | 93 | ECHO_N = @ECHO_N@ | |
97 | ECHO_T = @ECHO_T@ | 94 | ECHO_T = @ECHO_T@ | |
98 | EGREP = @EGREP@ | 95 | EGREP = @EGREP@ | |
99 | EXEEXT = @EXEEXT@ | 96 | EXEEXT = @EXEEXT@ | |
100 | F77 = @F77@ | 97 | FGREP = @FGREP@ | |
101 | FFLAGS = @FFLAGS@ | |||
102 | GREP = @GREP@ | 98 | GREP = @GREP@ | |
103 | INSTALL = @INSTALL@ | 99 | INSTALL = @INSTALL@ | |
104 | INSTALL_DATA = @INSTALL_DATA@ | 100 | INSTALL_DATA = @INSTALL_DATA@ | |
105 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 101 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
106 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | 102 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
107 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | 103 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
104 | LD = @LD@ | |||
108 | LDFLAGS = @LDFLAGS@ | 105 | LDFLAGS = @LDFLAGS@ | |
109 | LIBOBJS = @LIBOBJS@ | 106 | LIBOBJS = @LIBOBJS@ | |
110 | LIBS = @LIBS@ | 107 | LIBS = @LIBS@ | |
111 | LIBTOOL = @LIBTOOL@ | 108 | LIBTOOL = @LIBTOOL@ | |
109 | LIPO = @LIPO@ | |||
112 | LN_S = @LN_S@ | 110 | LN_S = @LN_S@ | |
113 | LTLIBOBJS = @LTLIBOBJS@ | 111 | LTLIBOBJS = @LTLIBOBJS@ | |
114 | MAINT = @MAINT@ | 112 | MAINT = @MAINT@ | |
115 | MAKEINFO = @MAKEINFO@ | 113 | MAKEINFO = @MAKEINFO@ | |
116 | MKDIR_P = @MKDIR_P@ | 114 | MKDIR_P = @MKDIR_P@ | |
115 | NM = @NM@ | |||
116 | NMEDIT = @NMEDIT@ | |||
117 | OBJDUMP = @OBJDUMP@ | |||
117 | OBJEXT = @OBJEXT@ | 118 | OBJEXT = @OBJEXT@ | |
119 | OPENSSL_INCLUDES = @OPENSSL_INCLUDES@ | |||
120 | OPENSSL_LDFLAGS = @OPENSSL_LDFLAGS@ | |||
121 | OPENSSL_LIBS = @OPENSSL_LIBS@ | |||
122 | OTOOL = @OTOOL@ | |||
123 | OTOOL64 = @OTOOL64@ | |||
118 | PACKAGE = @PACKAGE@ | 124 | PACKAGE = @PACKAGE@ | |
119 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | 125 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
120 | PACKAGE_NAME = @PACKAGE_NAME@ | 126 | PACKAGE_NAME = @PACKAGE_NAME@ | |
121 | PACKAGE_STRING = @PACKAGE_STRING@ | 127 | PACKAGE_STRING = @PACKAGE_STRING@ | |
122 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | 128 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
123 | PACKAGE_VERSION = @PACKAGE_VERSION@ | 129 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
124 | PATH_SEPARATOR = @PATH_SEPARATOR@ | 130 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
131 | PKG_CONFIG = @PKG_CONFIG@ | |||
125 | RANLIB = @RANLIB@ | 132 | RANLIB = @RANLIB@ | |
126 | SED = @SED@ | 133 | SED = @SED@ | |
127 | SET_MAKE = @SET_MAKE@ | 134 | SET_MAKE = @SET_MAKE@ | |
128 | SHELL = @SHELL@ | 135 | SHELL = @SHELL@ | |
129 | STRIP = @STRIP@ | 136 | STRIP = @STRIP@ | |
130 | VERSION = @VERSION@ | 137 | VERSION = @VERSION@ | |
131 | WARNCFLAGS = @WARNCFLAGS@ | 138 | WARNCFLAGS = @WARNCFLAGS@ | |
132 | abs_builddir = @abs_builddir@ | 139 | abs_builddir = @abs_builddir@ | |
133 | abs_srcdir = @abs_srcdir@ | 140 | abs_srcdir = @abs_srcdir@ | |
134 | abs_top_builddir = @abs_top_builddir@ | 141 | abs_top_builddir = @abs_top_builddir@ | |
135 | abs_top_srcdir = @abs_top_srcdir@ | 142 | abs_top_srcdir = @abs_top_srcdir@ | |
136 | ac_ct_CC = @ac_ct_CC@ | 143 | ac_ct_CC = @ac_ct_CC@ | |
137 | ac_ct_CXX = @ac_ct_CXX@ | 144 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | |
138 | ac_ct_F77 = @ac_ct_F77@ | |||
139 | am__include = @am__include@ | 145 | am__include = @am__include@ | |
140 | am__leading_dot = @am__leading_dot@ | 146 | am__leading_dot = @am__leading_dot@ | |
141 | am__quote = @am__quote@ | 147 | am__quote = @am__quote@ | |
142 | am__tar = @am__tar@ | 148 | am__tar = @am__tar@ | |
143 | am__untar = @am__untar@ | 149 | am__untar = @am__untar@ | |
144 | bindir = @bindir@ | 150 | bindir = @bindir@ | |
145 | build = @build@ | 151 | build = @build@ | |
146 | build_alias = @build_alias@ | 152 | build_alias = @build_alias@ | |
147 | build_cpu = @build_cpu@ | 153 | build_cpu = @build_cpu@ | |
148 | build_os = @build_os@ | 154 | build_os = @build_os@ | |
149 | build_vendor = @build_vendor@ | 155 | build_vendor = @build_vendor@ | |
150 | builddir = @builddir@ | 156 | builddir = @builddir@ | |
151 | datadir = @datadir@ | 157 | datadir = @datadir@ | |
@@ -156,44 +162,46 @@ exec_prefix = @exec_prefix@ | @@ -156,44 +162,46 @@ exec_prefix = @exec_prefix@ | |||
156 | host = @host@ | 162 | host = @host@ | |
157 | host_alias = @host_alias@ | 163 | host_alias = @host_alias@ | |
158 | host_cpu = @host_cpu@ | 164 | host_cpu = @host_cpu@ | |
159 | host_os = @host_os@ | 165 | host_os = @host_os@ | |
160 | host_vendor = @host_vendor@ | 166 | host_vendor = @host_vendor@ | |
161 | htmldir = @htmldir@ | 167 | htmldir = @htmldir@ | |
162 | includedir = @includedir@ | 168 | includedir = @includedir@ | |
163 | infodir = @infodir@ | 169 | infodir = @infodir@ | |
164 | install_sh = @install_sh@ | 170 | install_sh = @install_sh@ | |
165 | libdir = @libdir@ | 171 | libdir = @libdir@ | |
166 | libexecdir = @libexecdir@ | 172 | libexecdir = @libexecdir@ | |
167 | localedir = @localedir@ | 173 | localedir = @localedir@ | |
168 | localstatedir = @localstatedir@ | 174 | localstatedir = @localstatedir@ | |
175 | lt_ECHO = @lt_ECHO@ | |||
169 | mandir = @mandir@ | 176 | mandir = @mandir@ | |
170 | mkdir_p = @mkdir_p@ | 177 | mkdir_p = @mkdir_p@ | |
171 | oldincludedir = @oldincludedir@ | 178 | oldincludedir = @oldincludedir@ | |
172 | pdfdir = @pdfdir@ | 179 | pdfdir = @pdfdir@ | |
173 | prefix = @prefix@ | 180 | prefix = @prefix@ | |
174 | program_transform_name = @program_transform_name@ | 181 | program_transform_name = @program_transform_name@ | |
175 | psdir = @psdir@ | 182 | psdir = @psdir@ | |
176 | sbindir = @sbindir@ | 183 | sbindir = @sbindir@ | |
177 | sharedstatedir = @sharedstatedir@ | 184 | sharedstatedir = @sharedstatedir@ | |
178 | srcdir = @srcdir@ | 185 | srcdir = @srcdir@ | |
179 | sysconfdir = @sysconfdir@ | 186 | sysconfdir = @sysconfdir@ | |
180 | target_alias = @target_alias@ | 187 | target_alias = @target_alias@ | |
181 | top_build_prefix = @top_build_prefix@ | 188 | top_build_prefix = @top_build_prefix@ | |
182 | top_builddir = @top_builddir@ | 189 | top_builddir = @top_builddir@ | |
183 | top_srcdir = @top_srcdir@ | 190 | top_srcdir = @top_srcdir@ | |
184 | AM_CFLAGS = $(WARNCFLAGS) | 191 | AM_CFLAGS = $(WARNCFLAGS) | |
185 | netpgpverify_SOURCES = verify.c | 192 | netpgpverify_SOURCES = verify.c | |
186 | netpgpverify_CPPFLAGS = -I$(top_srcdir)/include | 193 | netpgpverify_CPPFLAGS = -I$(top_srcdir)/include | |
194 | netpgpverify_LDADD = ../lib/libnetpgp.la | |||
187 | man1_MANS = netpgpverify.1 | 195 | man1_MANS = netpgpverify.1 | |
188 | dist_man_MANS = netpgpverify.1 | 196 | dist_man_MANS = netpgpverify.1 | |
189 | all: all-am | 197 | all: all-am | |
190 | 198 | |||
191 | .SUFFIXES: | 199 | .SUFFIXES: | |
192 | .SUFFIXES: .c .lo .o .obj | 200 | .SUFFIXES: .c .lo .o .obj | |
193 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | 201 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | |
194 | @for dep in $?; do \ | 202 | @for dep in $?; do \ | |
195 | case '$(am__configure_deps)' in \ | 203 | case '$(am__configure_deps)' in \ | |
196 | *$$dep*) \ | 204 | *$$dep*) \ | |
197 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | 205 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | |
198 | && exit 0; \ | 206 | && exit 0; \ | |
199 | exit 1;; \ | 207 | exit 1;; \ |