From 219aa8f6b449f7dc81ddae48c4b01328ffe69cd3 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 6 Sep 2006 06:15:20 +0000 Subject: Merge a formerly duplicate function (one in an anonymous namespace in x509self.cpp, the other a block of code in X509_CA's constructor). --- src/x509self.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/x509self.cpp') diff --git a/src/x509self.cpp b/src/x509self.cpp index fadcf0c39..5707c1a58 100644 --- a/src/x509self.cpp +++ b/src/x509self.cpp @@ -55,24 +55,6 @@ void load_info(const X509_Cert_Options& opts, X509_DN& subject_dn, opts.xmpp, UTF8_STRING); } -/************************************************* -* Choose a signing format for the key * -*************************************************/ -PK_Signer* choose_sig_format(const PKCS8_PrivateKey& key, - AlgorithmIdentifier& sig_algo) - { - std::string padding; - Signature_Format format; - Config::choose_sig_format(key.algo_name(), padding, format); - - sig_algo.oid = OIDS::lookup(key.algo_name() + "/" + padding); - sig_algo.parameters = key.DER_encode_params(); - - const PK_Signing_Key& sig_key = dynamic_cast(key); - - return get_pk_signer(sig_key, padding, format); - } - } namespace X509 { -- cgit v1.2.3