summaryrefslogtreecommitdiffstats
path: root/sm/certdump.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2003-12-17 13:28:24 +0100
committerWerner Koch <wk@gnupg.org>2003-12-17 13:28:24 +0100
commitcbd57643a796acd3de6819183e751b251e748c32 (patch)
tree43f39aa81b51374bfd7d6105674fd27cad1af063 /sm/certdump.c
parentReplaced deprecated type names. (diff)
downloadgnupg2-cbd57643a796acd3de6819183e751b251e748c32.tar.xz
gnupg2-cbd57643a796acd3de6819183e751b251e748c32.zip
Replaced deprecated type names.
* certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul. (gpgsm_dump_serial): Ditto. * decrypt.c (gpgsm_decrypt): Replaced ERR by RC.
Diffstat (limited to 'sm/certdump.c')
-rw-r--r--sm/certdump.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sm/certdump.c b/sm/certdump.c
index f06cc5832..f64e985d3 100644
--- a/sm/certdump.c
+++ b/sm/certdump.c
@@ -42,10 +42,10 @@ struct dn_array_s {
/* print the first element of an S-Expression */
void
-gpgsm_print_serial (FILE *fp, KsbaConstSexp p)
+gpgsm_print_serial (FILE *fp, ksba_const_sexp_t p)
{
unsigned long n;
- KsbaConstSexp endp;
+ char *endp;
if (!p)
fputs (_("none"), fp);
@@ -54,7 +54,7 @@ gpgsm_print_serial (FILE *fp, KsbaConstSexp p)
else
{
p++;
- n = strtoul (p, (char**)&endp, 10);
+ n = strtoul (p, &endp, 10);
p = endp;
if (*p!=':')
fputs ("[Internal Error - invalid S-expression]", fp);
@@ -68,10 +68,10 @@ gpgsm_print_serial (FILE *fp, KsbaConstSexp p)
void
-gpgsm_dump_serial (KsbaConstSexp p)
+gpgsm_dump_serial (ksba_const_sexp_t p)
{
unsigned long n;
- KsbaConstSexp endp;
+ char *endp;
if (!p)
log_printf ("none");
@@ -80,7 +80,7 @@ gpgsm_dump_serial (KsbaConstSexp p)
else
{
p++;
- n = strtoul (p, (char**)&endp, 10);
+ n = strtoul (p, &endp, 10);
p = endp;
if (*p!=':')
log_printf ("ERROR - invalid S-expression");
@@ -142,9 +142,9 @@ gpgsm_dump_string (const char *string)
void
-gpgsm_dump_cert (const char *text, KsbaCert cert)
+gpgsm_dump_cert (const char *text, ksba_cert_t cert)
{
- KsbaSexp sexp;
+ ksba_sexp_t sexp;
unsigned char *p;
char *dn;
ksba_isotime_t t;