=== modified file 'plugins.d/mandos-client.c' --- plugins.d/mandos-client.c 2018-04-01 22:08:50 +0000 +++ plugins.d/mandos-client.c 2018-04-02 10:24:15 +0000 @@ -502,17 +502,14 @@ if(result->file_name != NULL){ fprintf_plus(stderr, "File name: %s\n", result->file_name); } - gpgme_recipient_t recipient; - recipient = result->recipients; - while(recipient != NULL){ + + for(gpgme_recipient_t r = result->recipients; r != NULL; + r = r->next){ fprintf_plus(stderr, "Public key algorithm: %s\n", - gpgme_pubkey_algo_name - (recipient->pubkey_algo)); - fprintf_plus(stderr, "Key ID: %s\n", recipient->keyid); + gpgme_pubkey_algo_name(r->pubkey_algo)); + fprintf_plus(stderr, "Key ID: %s\n", r->keyid); fprintf_plus(stderr, "Secret key available: %s\n", - recipient->status == GPG_ERR_NO_SECKEY - ? "No" : "Yes"); - recipient = recipient->next; + r->status == GPG_ERR_NO_SECKEY ? "No" : "Yes"); } } }