pka_address [SOLVED]
Arturo 'Buanzo' Busleiman
buanzo at buanzo.com.ar
Thu Apr 19 23:32:34 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Arturo 'Buanzo' Busleiman wrote:
> /* pka_address can be null when address is unknown.. but WHY is it unknown?! */
> if (result->signatures->pka_address != NULL) {
> *key_address = apr_pcalloc (r->pool, strlen(result->signatures->pka_address) + 1);
> memcpy ((char *) *key_address, result->signatures->pka_address,
> strlen(result->signatures->pka_address));
> }
Well, I've solved the issue with this very simple code. I was sure this was deprecated, but seems I
was mistaken:
[the code block above]
} else {
err = gpgme_get_key (ctx, result->signatures->fpr, &key, 0);
if (key->uids->email != NULL) {
*key_address = apr_pcalloc (r->pool, strlen(key->uids->email) + 1);
memcpy ((char *) *key_address, key->uids->email, strlen(key->uids->email));
}
}
- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Foros GNU/Buanzo: Respeto, Soluciones y Buena Onda: http://foros.buanzo.com.ar
Consulting and Secure Mail Hosting: http://www.buanzo.com.ar/pro/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGJ9/yAlpOsGhXcE0RChozAJsHTY8Ywmq0vn91G2ZTvD9FGJouUwCfbCJ/
bXngLLq4PghzcqWJ0wnjlB0=
=Td5n
-----END PGP SIGNATURE-----
More information about the Gnupg-devel
mailing list