Use ID_KEY_ID as PGP user id, as it can contain any string
authorMartin Willi <martin@strongswan.org>
Tue, 15 Sep 2009 06:45:08 +0000 (08:45 +0200)
committerMartin Willi <martin@strongswan.org>
Tue, 15 Sep 2009 06:45:08 +0000 (08:45 +0200)
src/libstrongswan/plugins/pgp/pgp_cert.c

index d289a3b..3a7179f 100644 (file)
@@ -340,7 +340,7 @@ static bool parse_signature(private_pgp_cert_t *this, chunk_t packet)
 static bool parse_user_id(private_pgp_cert_t *this, chunk_t packet)
 {
        DESTROY_IF(this->user_id);
-       this->user_id = identification_create_from_encoding(ID_RFC822_ADDR, packet);
+       this->user_id = identification_create_from_encoding(ID_KEY_ID, packet);
        return TRUE;
 }