diff options
Diffstat (limited to 'g10/import.c')
-rw-r--r-- | g10/import.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/import.c b/g10/import.c index bb0bf6793..674f6437b 100644 --- a/g10/import.c +++ b/g10/import.c @@ -2645,7 +2645,7 @@ transfer_secret_keys (ctrl_t ctrl, struct import_stats_s *stats, dummy key. We can't express that in an S-expression and thus we send dummy data for the IV. */ snprintf (countbuf, sizeof countbuf, "%lu", - (unsigned long)ski->s2k.count); + (unsigned long)ski->s2k.u.s.count); err = gcry_sexp_build (&prot, NULL, " (protection %s %s %b %d %s %b %s)\n", @@ -2654,8 +2654,8 @@ transfer_secret_keys (ctrl_t ctrl, struct import_stats_s *stats, ski->ivlen? (int)ski->ivlen:1, ski->ivlen? ski->iv: (const unsigned char*)"X", ski->s2k.mode, - openpgp_md_algo_name (ski->s2k.hash_algo), - (int)sizeof (ski->s2k.salt), ski->s2k.salt, + openpgp_md_algo_name (ski->s2k.u.s.hash_algo), + (int)sizeof (ski->s2k.u.s.salt), ski->s2k.u.s.salt, countbuf); } else |