X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Firssi%2Fsrc%2Fsilc%2Fcore%2Fsilc-channels.c;h=4bd4e49ef556fb0d8a464fb930f8f014028eafa7;hb=664b22d58794a76de354831dc44c9ad14e91e389;hp=8917fc2ced40b8d36966c5754ad0893b89600d3a;hpb=cec0db037b3c560a95bd43a7b39f27859ff3d014;p=silc.git diff --git a/apps/irssi/src/silc/core/silc-channels.c b/apps/irssi/src/silc/core/silc-channels.c index 8917fc2c..4bd4e49e 100644 --- a/apps/irssi/src/silc/core/silc-channels.c +++ b/apps/irssi/src/silc/core/silc-channels.c @@ -1074,7 +1074,8 @@ void silc_list_key(const char *pub_filename, int verbose) SilcUInt32 key_len = 0; int is_server_key = (strstr(pub_filename, "serverkeys") != NULL); - if (!silc_pkcs_load_public_key((char *)pub_filename, &public_key)) { + if (!silc_pkcs_load_public_key((char *)pub_filename, SILC_PKCS_ANY, + &public_key)) { printformat_module("fe-common/silc", NULL, NULL, MSGLEVEL_CRAP, SILCTXT_LISTKEY_LOADPUB, pub_filename); @@ -1089,7 +1090,7 @@ void silc_list_key(const char *pub_filename, int verbose) return; } - silc_pubkey = silc_pkcs_get_context(SILC_PKCS_SILC, public_key); + silc_pubkey = silc_pkcs_public_key_get_pkcs(SILC_PKCS_SILC, public_key); ident = &silc_pubkey->identifier; pk = silc_pkcs_public_key_encode(NULL, public_key, &pk_len);