aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/pkcs7.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-05-04 19:29:59 +0200
committerTobias Brunner <tobias@strongswan.org>2012-06-11 17:09:19 +0200
commitea92d4f305964f6f533fb7540467361ee3e33c4a (patch)
tree912b28c98f4af74ef55697d6f2fc40b3462763e9 /src/libstrongswan/crypto/pkcs7.c
parentdd93aefc0971030e08bd4c15a5e64708610834ea (diff)
downloadstrongswan-ea92d4f305964f6f533fb7540467361ee3e33c4a.tar.bz2
strongswan-ea92d4f305964f6f533fb7540467361ee3e33c4a.tar.xz
Added get_attributes() method to pkcs7_t.
Diffstat (limited to 'src/libstrongswan/crypto/pkcs7.c')
-rw-r--r--src/libstrongswan/crypto/pkcs7.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstrongswan/crypto/pkcs7.c b/src/libstrongswan/crypto/pkcs7.c
index a69242ca7..b8ee8ce7a 100644
--- a/src/libstrongswan/crypto/pkcs7.c
+++ b/src/libstrongswan/crypto/pkcs7.c
@@ -681,6 +681,12 @@ METHOD(pkcs7_t, set_attributes, void,
this->attributes = attributes;
}
+METHOD(pkcs7_t, get_attributes, pkcs9_t*,
+ private_pkcs7_t *this)
+{
+ return this->attributes;
+}
+
/**
* build a DER-encoded issuerAndSerialNumber object
*/
@@ -990,6 +996,7 @@ static private_pkcs7_t *pkcs7_create_empty(void)
.create_certificate_enumerator = _create_certificate_enumerator,
.set_certificate = _set_certificate,
.set_attributes = _set_attributes,
+ .get_attributes = _get_attributes,
.build_envelopedData = _build_envelopedData,
.build_signedData = _build_signedData,
.destroy = _destroy,