diff options
author | Martin Willi <martin@strongswan.org> | 2009-08-27 13:09:31 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-08-27 13:59:30 +0200 |
commit | c03b095ebecd37c8bbb853411a07a5cba4d39203 (patch) | |
tree | fd11845c177662d944f12c5796789a5893e23082 /src/medsrv/controller/peer_controller.c | |
parent | 09fe3c7e4cf05d4aa3a60edea3ea4f5b191be3da (diff) | |
download | strongswan-c03b095ebecd37c8bbb853411a07a5cba4d39203.tar.bz2 strongswan-c03b095ebecd37c8bbb853411a07a5cba4d39203.tar.xz |
use subjectPublicKeyInfo encoding type directly
Diffstat (limited to 'src/medsrv/controller/peer_controller.c')
-rwxr-xr-x | src/medsrv/controller/peer_controller.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/medsrv/controller/peer_controller.c b/src/medsrv/controller/peer_controller.c index 9b472a903..06c67901f 100755 --- a/src/medsrv/controller/peer_controller.c +++ b/src/medsrv/controller/peer_controller.c @@ -140,15 +140,12 @@ static bool parse_public_key(private_peer_controller_t *this, } /* TODO: use get_encoding() with an encoding type */ if (!public->get_fingerprint(public, KEY_ID_PUBKEY_SHA1, &id) || - !public->get_encoding(public, KEY_PUB_ASN1_DER, &blob)) + !public->get_encoding(public, KEY_PUB_SPKI_ASN1_DER, encoding)) { request->setf(request, "error=Encoding public key failed."); return FALSE; } *keyid = chunk_clone(id); - *encoding = asn1_wrap(ASN1_SEQUENCE, "cm", - asn1_algorithmIdentifier(OID_RSA_ENCRYPTION), - asn1_bitstring("m", blob)); public->destroy(public); return TRUE; } |