diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2016-01-04 10:34:21 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2016-01-09 07:23:29 +0100 |
commit | 87371460f660e245bae49d60b5ed26e7b8c8e0b0 (patch) | |
tree | c643b74c622efb5849e72e80795ec88ebeb50b17 /src/libstrongswan/plugins/pubkey/pubkey_cert.c | |
parent | bffbf2f5fdad23d2b8453e2c15c99a071c47e7d9 (diff) | |
download | strongswan-87371460f660e245bae49d60b5ed26e7b8c8e0b0.tar.bz2 strongswan-87371460f660e245bae49d60b5ed26e7b8c8e0b0.tar.xz |
vici: Support of raw public keys
Diffstat (limited to 'src/libstrongswan/plugins/pubkey/pubkey_cert.c')
-rw-r--r-- | src/libstrongswan/plugins/pubkey/pubkey_cert.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/pubkey/pubkey_cert.c b/src/libstrongswan/plugins/pubkey/pubkey_cert.c index b7ba5ad43..0631a6857 100644 --- a/src/libstrongswan/plugins/pubkey/pubkey_cert.c +++ b/src/libstrongswan/plugins/pubkey/pubkey_cert.c @@ -196,6 +196,13 @@ METHOD(certificate_t, destroy, void, } } +METHOD(pubkey_cert_t, set_subject, void, + private_pubkey_cert_t *this, identification_t *subject) +{ + DESTROY_IF(this->subject); + this->subject = subject->clone(subject); +} + /* * see header file */ @@ -222,6 +229,7 @@ static pubkey_cert_t *pubkey_cert_create(public_key_t *key, .get_ref = _get_ref, .destroy = _destroy, }, + .set_subject = _set_subject, }, .ref = 1, .key = key, |