aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cert/x509
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-09-22 23:13:08 +0200
committerSimon Warta <[email protected]>2015-09-22 23:13:08 +0200
commit1f62dbcd0108a2cd99ad473299e041163a638b1c (patch)
treefb74d95411c5f8c41ca7f409cfc8d36513023363 /src/lib/cert/x509
parentac9689990da914cd58788dab9d5e0d7bebb72e30 (diff)
Avoid concatination of chars
Ever tried? auto str = "some long string"; auto str2 = str + '\n'; It's not with the brainfuck finding the bug.
Diffstat (limited to 'src/lib/cert/x509')
-rw-r--r--src/lib/cert/x509/x509_ca.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cert/x509/x509_ca.cpp b/src/lib/cert/x509/x509_ca.cpp
index b6bb5d8ce..d329bfdd8 100644
--- a/src/lib/cert/x509/x509_ca.cpp
+++ b/src/lib/cert/x509/x509_ca.cpp
@@ -243,7 +243,7 @@ PK_Signer* choose_sig_format(const Private_Key& key,
const Signature_Format format = (key.message_parts() > 1) ? DER_SEQUENCE : IEEE_1363;
- padding = padding + '(' + hash->name() + ')';
+ padding = padding + "(" + hash->name() + ")";
sig_algo.oid = OIDS::lookup(algo_name + "/" + padding);
sig_algo.parameters = key.algorithm_identifier().parameters;