aboutsummaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
Diffstat (limited to 'sm')
-rw-r--r--sm/ChangeLog10
-rw-r--r--sm/Makefile.am2
-rw-r--r--sm/keydb.c27
-rw-r--r--sm/keylist.c4
4 files changed, 14 insertions, 29 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog
index f161d444c..48e8473fa 100644
--- a/sm/ChangeLog
+++ b/sm/ChangeLog
@@ -1,3 +1,9 @@
+2006-05-23 Werner Koch <[email protected]>
+
+ * keydb.c (hextobyte): Deleted as it is now defined in jnlib.
+
+ * Makefile.am (gpgsm_LDADD): Include ZLIBS.
+
2006-05-19 Marcus Brinkmann <[email protected]>
* keydb.c (keydb_insert_cert): Do not lock here, but only check if
@@ -9,6 +15,10 @@
* delete.c (delete_one): Add new argument to invocation of
keydb_delete.
+2006-05-15 Werner Koch <[email protected]>
+
+ * keylist.c (print_names_raw): Sanitize URI.
+
2006-03-21 Werner Koch <[email protected]>
* certchain.c (get_regtp_ca_info): New.
diff --git a/sm/Makefile.am b/sm/Makefile.am
index aba2081f8..b5882ae1d 100644
--- a/sm/Makefile.am
+++ b/sm/Makefile.am
@@ -56,6 +56,6 @@ gpgsm_SOURCES = \
gpgsm_LDADD = ../jnlib/libjnlib.a ../kbx/libkeybox.a \
../common/libcommon.a ../gl/libgnu.a \
$(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) -lgpg-error \
- $(LIBINTL) $(PTH_LIBS)
+ $(LIBINTL) $(PTH_LIBS) $(ZLIBS)
diff --git a/sm/keydb.c b/sm/keydb.c
index 15f5dbdac..d5932135d 100644
--- a/sm/keydb.c
+++ b/sm/keydb.c
@@ -1010,33 +1010,6 @@ keydb_search_subject (KEYDB_HANDLE hd, const char *name)
static int
-hextobyte (const char *string)
-{
- const unsigned char *s = (const unsigned char *)string;
- int c;
-
- if( *s >= '0' && *s <= '9' )
- c = 16 * (*s - '0');
- else if ( *s >= 'A' && *s <= 'F' )
- c = 16 * (10 + *s - 'A');
- else if ( *s >= 'a' && *s <= 'f' )
- c = 16 * (10 + *s - 'a');
- else
- return -1;
- s++;
- if ( *s >= '0' && *s <= '9' )
- c += *s - '0';
- else if ( *s >= 'A' && *s <= 'F' )
- c += 10 + *s - 'A';
- else if ( *s >= 'a' && *s <= 'f' )
- c += 10 + *s - 'a';
- else
- return -1;
- return c;
-}
-
-
-static int
classify_user_id (const char *name,
KEYDB_SEARCH_DESC *desc,
int *force_exact )
diff --git a/sm/keylist.c b/sm/keylist.c
index 51a066dab..b744a157f 100644
--- a/sm/keylist.c
+++ b/sm/keylist.c
@@ -529,7 +529,9 @@ print_names_raw (FILE *fp, int indent, ksba_name_t name)
for (idx=0; (s = ksba_name_enum (name, idx)); idx++)
{
char *p = ksba_name_get_uri (name, idx);
- printf ("%*s%s\n", idx||indent_all?indent:0, "", p?p:s);
+ printf ("%*s", idx||indent_all?indent:0, "");
+ print_sanitized_string (fp, p?p:s, 0);
+ putc ('\n', fp);
xfree (p);
}
}