/* Create default email address, whether it is right or not */
silc_snprintf(email, sizeof(email), "%s@%s", username, hostname);
- ident = silc_pkcs_silc_encode_identifier(username, hostname, realname,
+ ident = silc_pkcs_silc_encode_identifier(NULL, username, hostname, realname,
email, NULL, NULL, NULL);
if (realname)
silc_free(realname);
ident = &silc_pubkey->identifier;
key_len = silc_pkcs_public_key_get_len(public_key);
- pk = silc_pkcs_public_key_encode(public_key, &pk_len);
+ pk = silc_pkcs_public_key_encode(NULL, public_key, &pk_len);
if (!pk)
return FALSE;
fingerprint = silc_hash_fingerprint(NULL, pk, pk_len);