aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-05-02 16:24:09 +0000
committerlloyd <[email protected]>2012-05-02 16:24:09 +0000
commit4d45c02af30e2f920954997c5786d748803d2f5a (patch)
treef51f73f62f58d115b74d82a9ba6376839b3f7cda /src
parent3dc99b8c2e00f74b04e11cf0333a230532d8cb13 (diff)
Padding wasn't set for DSA keys. Irrelevant for cert verify as that
isn't working here anyway, but also broke DSA servers.
Diffstat (limited to 'src')
-rw-r--r--src/ssl/cert_ver.cpp4
-rw-r--r--src/ssl/s_kex.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ssl/cert_ver.cpp b/src/ssl/cert_ver.cpp
index 3220a8c9e..b634a662d 100644
--- a/src/ssl/cert_ver.cpp
+++ b/src/ssl/cert_ver.cpp
@@ -30,7 +30,7 @@ Certificate_Verify::Certificate_Verify(RandomNumberGenerator& rng,
padding = "EMSA3(TLS.Digest.0)";
else if(priv_key->algo_name() == "DSA")
{
- padding == "EMSA1(SHA-1)";
+ padding = "EMSA1(SHA-1)";
format = DER_SEQUENCE;
}
else
@@ -84,7 +84,7 @@ bool Certificate_Verify::verify(const X509_Certificate& cert,
padding = "EMSA3(TLS.Digest.0)";
else if(key->algo_name() == "DSA")
{
- padding == "EMSA1(SHA-1)";
+ padding = "EMSA1(SHA-1)";
format = DER_SEQUENCE;
}
else
diff --git a/src/ssl/s_kex.cpp b/src/ssl/s_kex.cpp
index 1e7de31d0..879ee660a 100644
--- a/src/ssl/s_kex.cpp
+++ b/src/ssl/s_kex.cpp
@@ -160,7 +160,7 @@ bool Server_Key_Exchange::verify(const X509_Certificate& cert,
padding = "EMSA3(TLS.Digest.0)";
else if(key->algo_name() == "DSA")
{
- padding == "EMSA1(SHA-1)";
+ padding = "EMSA1(SHA-1)";
format = DER_SEQUENCE;
}
else