* keygen.c (ask_key_flags): New. (ask_algo): Call it here in --expert mode
[gnupg.git] / g10 / pubkey-enc.c
index d61bd01..02a0913 100644 (file)
@@ -100,8 +100,8 @@ get_session_key( PKT_pubkey_enc *k, DEK *dek )
            if( sk->pubkey_algo != k->pubkey_algo )
                continue;
            keyid_from_sk( sk, keyid );
-           log_info(_("anonymous recipient; trying secret key %08lX ...\n"),
-                     (ulong)keyid[1] );
+           log_info(_("anonymous recipient; trying secret key %s ...\n"),
+                     keystr(keyid));
 
            if(!opt.try_all_secrets && !is_status_enabled())
              {
@@ -283,8 +283,8 @@ get_it( PKT_pubkey_enc *enc, DEK *dek, PKT_secret_key *sk, u32 *keyid )
             if (!pk)
                 BUG ();
             if ( pk->expiredate && pk->expiredate <= make_timestamp() ) {
-                log_info(_("NOTE: secret key %08lX expired at %s\n"),
-                         (ulong)keyid[1], asctimestamp( pk->expiredate) );
+                log_info(_("NOTE: secret key %s expired at %s\n"),
+                         keystr(keyid), asctimestamp( pk->expiredate) );
             }
         }