diff options
author | lloyd <[email protected]> | 2012-01-25 01:47:29 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-25 01:47:29 +0000 |
commit | a4702350f9a5f85b368a4293c4369c2727c65ddb (patch) | |
tree | 3299bb5d3c7e2dbb7fb321f927a8025b0dc2b4c5 /src | |
parent | 2e228d51c23ff2633d520fe6b6c05a2b093bccee (diff) |
Convenience method
Diffstat (limited to 'src')
-rw-r--r-- | src/tls/tls_ciphersuite.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tls/tls_ciphersuite.h b/src/tls/tls_ciphersuite.h index 704a70cf4..f0acc1497 100644 --- a/src/tls/tls_ciphersuite.h +++ b/src/tls/tls_ciphersuite.h @@ -36,6 +36,8 @@ class BOTAN_DLL Ciphersuite size_t cipher_keylen() const { return m_cipher_keylen; } + bool valid() const { return (m_cipher_keylen > 0); } + Ciphersuite() : m_cipher_keylen(0) {} Ciphersuite(const std::string& sig_algo, |