diff options
author | lloyd <[email protected]> | 2012-05-02 16:24:09 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-05-02 16:24:09 +0000 |
commit | 4d45c02af30e2f920954997c5786d748803d2f5a (patch) | |
tree | f51f73f62f58d115b74d82a9ba6376839b3f7cda /src/ssl | |
parent | 3dc99b8c2e00f74b04e11cf0333a230532d8cb13 (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/ssl')
-rw-r--r-- | src/ssl/cert_ver.cpp | 4 | ||||
-rw-r--r-- | src/ssl/s_kex.cpp | 2 |
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 |