summaryrefslogtreecommitdiff
path: root/pjlib/include
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2014-04-30 08:21:28 +0000
committerLiong Sauw Ming <ming@teluu.com>2014-04-30 08:21:28 +0000
commit88ae49c716c90975e9fcb1bfa96716576a5da172 (patch)
tree8cd84ce5b833a3f4b30bb7dccca1860e658a4f60 /pjlib/include
parent2e343a7b0b115a3ec1b45a36ffad46ac64ea72a9 (diff)
Fixed #1763: Add pj_ssl_cipher_id() API
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4829 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include')
-rw-r--r--pjlib/include/pj/ssl_sock.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pjlib/include/pj/ssl_sock.h b/pjlib/include/pj/ssl_sock.h
index bfad5af2..0d24a494 100644
--- a/pjlib/include/pj/ssl_sock.h
+++ b/pjlib/include/pj/ssl_sock.h
@@ -243,6 +243,9 @@ PJ_DECL(pj_status_t) pj_ssl_cert_get_verify_status_strings(
*/
typedef enum pj_ssl_cipher {
+ /* Unsupported cipher */
+ PJ_TLS_UNKNOWN_CIPHER = -1,
+
/* NULL */
PJ_TLS_NULL_WITH_NULL_NULL = 0x00000000,
@@ -353,7 +356,9 @@ PJ_DECL(const char*) pj_ssl_cipher_name(pj_ssl_cipher cipher);
/**
- * Get cipher ID from cipher name string.
+ * Get cipher ID from cipher name string. Note that on different backends
+ * (e.g. OpenSSL or Symbian implementation), cipher names may not be
+ * equivalent for the same cipher ID.
*
* @param cipher_name The cipher name string.
*