diff options
author | lloyd <[email protected]> | 2012-01-19 13:25:46 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-19 13:25:46 +0000 |
commit | e3d14f1bacde5f23d63ccc5860d5c13c81f70b3a (patch) | |
tree | 07117a13d11a32f9c8a8c15abb2e5de3060f178e /src/tls | |
parent | f8467e3ac1f7c35ef885e078e1fdc06d28a80d11 (diff) |
Also fix encoding
Diffstat (limited to 'src/tls')
-rw-r--r-- | src/tls/cert_req.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tls/cert_req.cpp b/src/tls/cert_req.cpp index 6269fdfb9..ce1941a0a 100644 --- a/src/tls/cert_req.cpp +++ b/src/tls/cert_req.cpp @@ -45,12 +45,13 @@ MemoryVector<byte> Certificate_Req::serialize() const append_tls_length_value(buf, types, 1); - DER_Encoder encoder; - for(size_t i = 0; i != names.size(); ++i) + for(size_t i = 0; i 1= names.size(); ++i) + { + DER_Encoder encoder; encoder.encode(names[i]); - // is this correct? - append_tls_length_value(buf, encoder.get_contents(), 2); + append_tls_length_value(buf, encoder.get_contents(), 2); + } return buf; } |