aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_handshake.hrl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2010-11-29 15:40:48 +0100
committerIngela Anderton Andin <[email protected]>2010-11-30 10:33:51 +0100
commit3326cab005954dc6ba6c6596f77b5882b77f6be2 (patch)
tree084e72999e75eabea8a9b24c009412adcd173931 /lib/ssl/src/ssl_handshake.hrl
parent827dc3c7e13d4ce21315f441c4400fb575f41c20 (diff)
downloadotp-3326cab005954dc6ba6c6596f77b5882b77f6be2.tar.gz
otp-3326cab005954dc6ba6c6596f77b5882b77f6be2.tar.bz2
otp-3326cab005954dc6ba6c6596f77b5882b77f6be2.zip
Fixed guard and test case
Data to sign and verify should be inputed as binaries. Also cleaned up and moved some dialyzer specs.
Diffstat (limited to 'lib/ssl/src/ssl_handshake.hrl')
-rw-r--r--lib/ssl/src/ssl_handshake.hrl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ssl/src/ssl_handshake.hrl b/lib/ssl/src/ssl_handshake.hrl
index 74fba3786c..68a7802ef2 100644
--- a/lib/ssl/src/ssl_handshake.hrl
+++ b/lib/ssl/src/ssl_handshake.hrl
@@ -26,6 +26,13 @@
-ifndef(ssl_handshake).
-define(ssl_handshake, true).
+-include_lib("public_key/include/public_key.hrl").
+
+-type algo_oid() :: ?'rsaEncryption' | ?'id-dsa'.
+-type public_key() :: #'RSAPublicKey'{} | integer().
+-type public_key_params() :: #'Dss-Parms'{} | term().
+-type public_key_info() :: {algo_oid(), public_key(), public_key_params()}.
+
-record(session, {
session_id,
peer_certificate,