refactored credential builder
authorMartin Willi <martin@strongswan.org>
Tue, 2 Sep 2008 11:00:13 +0000 (11:00 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 2 Sep 2008 11:00:13 +0000 (11:00 -0000)
commitf7c17aa15c13b10f7b624ae8da5ea3d921b77535
treee8db73c667aa1c9f0d827ed590aeb6393d6037e3
parent4da0116d78b726ef4125577bed8e9974883fc7fd
refactored credential builder
allow enumeration of matching builders
try a second builder if the first one fails
builder clones resources internally on demand
caller frees added resources on failure and success
stricter handling of non-supported build parts
29 files changed:
src/charon/credentials/credential_manager.c
src/charon/credentials/sets/auth_info_wrapper.c
src/charon/encoding/payloads/cert_payload.c
src/charon/plugins/medcli/medcli_creds.c
src/charon/plugins/medsrv/medsrv_creds.c
src/charon/plugins/sql/sql_cred.c
src/charon/plugins/stroke/stroke_cred.c
src/charon/plugins/unit_tester/Makefile.am
src/charon/plugins/unit_tester/tests.h
src/charon/plugins/unit_tester/tests/test_agent.c [new file with mode: 0644]
src/charon/plugins/unit_tester/tests/test_auth_info.c
src/charon/plugins/unit_tester/tests/test_rsa_gen.c
src/libstrongswan/credentials/builder.c
src/libstrongswan/credentials/builder.h
src/libstrongswan/credentials/credential_factory.c
src/libstrongswan/credentials/credential_factory.h
src/libstrongswan/plugins/gmp/gmp_rsa_private_key.c
src/libstrongswan/plugins/gmp/gmp_rsa_public_key.c
src/libstrongswan/plugins/openssl/openssl_ec_private_key.c
src/libstrongswan/plugins/openssl/openssl_ec_public_key.c
src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c
src/libstrongswan/plugins/openssl/openssl_rsa_public_key.c
src/libstrongswan/plugins/pubkey/pubkey_cert.c
src/libstrongswan/plugins/pubkey/pubkey_public_key.c
src/libstrongswan/plugins/x509/x509_ac.c
src/libstrongswan/plugins/x509/x509_cert.c
src/libstrongswan/plugins/x509/x509_crl.c
src/libstrongswan/plugins/x509/x509_ocsp_request.c
src/libstrongswan/plugins/x509/x509_ocsp_response.c