{-# LINE 1 "OpenSSL/SSL/Option.hsc" #-}
{-# LANGUAGE DeriveDataTypeable #-}
module OpenSSL.SSL.Option
( SSLOption(..)
, optionToIntegral
)
where
import Data.Typeable
data SSLOption
=
SSL_OP_MICROSOFT_SESS_ID_BUG
| SSL_OP_NETSCAPE_CHALLENGE_BUG
| SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG
| SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG
| SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER
{-# LINE 31 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_SAFARI_ECDHE_ECDSA_BUG
{-# LINE 36 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_SSLEAY_080_CLIENT_DH_BUG
| SSL_OP_TLS_D5_BUG
| SSL_OP_TLS_BLOCK_PADDING_BUG
{-# LINE 43 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
{-# LINE 49 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 50 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_TLSEXT_PADDING
{-# LINE 55 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_ALL
{-# LINE 58 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_TLS_ROLLBACK_BUG
{-# LINE 71 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_SINGLE_DH_USE
| SSL_OP_EPHEMERAL_RSA
{-# LINE 76 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_CIPHER_SERVER_PREFERENCE
{-# LINE 85 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_PKCS1_CHECK_1
| SSL_OP_PKCS1_CHECK_2
| SSL_OP_NETSCAPE_CA_DN_BUG
| SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG
| SSL_OP_NO_SSLv2
| SSL_OP_NO_SSLv3
| SSL_OP_NO_TLSv1
| SSL_OP_NO_TLSv1_1
| SSL_OP_NO_TLSv1_2
| SSL_OP_NO_TLSv1_3
| SSL_OP_NO_DTLSv1
| SSL_OP_NO_DTLSv1_2
{-# LINE 117 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION
{-# LINE 123 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_NO_TICKET
{-# LINE 132 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION
{-# LINE 138 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 139 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_LEGACY_SERVER_CONNECT
{-# LINE 145 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 146 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_NO_EXTENDED_MASTER_SECRET
{-# LINE 150 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 151 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_CLEANSE_PLAINTEXT
{-# LINE 155 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 156 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_ENABLE_KTLS
{-# LINE 160 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 161 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_IGNORE_UNEXPECTED_EOF
{-# LINE 163 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 164 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_ALLOW_CLIENT_RENEGOTIATION
{-# LINE 166 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 167 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_DISABLE_TLSEXT_CA_NAMES
{-# LINE 169 "OpenSSL/SSL/Option.hsc" #-}
| SSL_OP_CISCO_ANYCONNECT
| SSL_OP_NO_ANTI_REPLAY
| SSL_OP_PRIORITIZE_CHACHA
| SSL_OP_ALLOW_NO_DHE_KEX
| SSL_OP_NO_ENCRYPT_THEN_MAC
| SSL_OP_NO_QUERY_MTU
| SSL_OP_COOKIE_EXCHANGE
| SSL_OP_NO_COMPRESSION
| SSL_OP_ENABLE_MIDDLEBOX_COMPAT
| SSL_OP_NO_RENEGOTIATION
| SSL_OP_CRYPTOPRO_TLSEXT_BUG
deriving (SSLOption -> SSLOption -> Bool
(SSLOption -> SSLOption -> Bool)
-> (SSLOption -> SSLOption -> Bool) -> Eq SSLOption
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SSLOption -> SSLOption -> Bool
== :: SSLOption -> SSLOption -> Bool
$c/= :: SSLOption -> SSLOption -> Bool
/= :: SSLOption -> SSLOption -> Bool
Eq, Eq SSLOption
Eq SSLOption =>
(SSLOption -> SSLOption -> Ordering)
-> (SSLOption -> SSLOption -> Bool)
-> (SSLOption -> SSLOption -> Bool)
-> (SSLOption -> SSLOption -> Bool)
-> (SSLOption -> SSLOption -> Bool)
-> (SSLOption -> SSLOption -> SSLOption)
-> (SSLOption -> SSLOption -> SSLOption)
-> Ord SSLOption
SSLOption -> SSLOption -> Bool
SSLOption -> SSLOption -> Ordering
SSLOption -> SSLOption -> SSLOption
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
$ccompare :: SSLOption -> SSLOption -> Ordering
compare :: SSLOption -> SSLOption -> Ordering
$c< :: SSLOption -> SSLOption -> Bool
< :: SSLOption -> SSLOption -> Bool
$c<= :: SSLOption -> SSLOption -> Bool
<= :: SSLOption -> SSLOption -> Bool
$c> :: SSLOption -> SSLOption -> Bool
> :: SSLOption -> SSLOption -> Bool
$c>= :: SSLOption -> SSLOption -> Bool
>= :: SSLOption -> SSLOption -> Bool
$cmax :: SSLOption -> SSLOption -> SSLOption
max :: SSLOption -> SSLOption -> SSLOption
$cmin :: SSLOption -> SSLOption -> SSLOption
min :: SSLOption -> SSLOption -> SSLOption
Ord, Int -> SSLOption -> ShowS
[SSLOption] -> ShowS
SSLOption -> String
(Int -> SSLOption -> ShowS)
-> (SSLOption -> String)
-> ([SSLOption] -> ShowS)
-> Show SSLOption
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SSLOption -> ShowS
showsPrec :: Int -> SSLOption -> ShowS
$cshow :: SSLOption -> String
show :: SSLOption -> String
$cshowList :: [SSLOption] -> ShowS
showList :: [SSLOption] -> ShowS
Show, Typeable)
optionToIntegral :: Integral a => SSLOption -> a
optionToIntegral :: forall a. Integral a => SSLOption -> a
optionToIntegral SSLOption
SSL_OP_MICROSOFT_SESS_ID_BUG = a
0
{-# LINE 184 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NETSCAPE_CHALLENGE_BUG = 0
{-# LINE 185 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG = 0
{-# LINE 186 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG = 0
{-# LINE 187 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER = 0
{-# LINE 188 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 189 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_SAFARI_ECDHE_ECDSA_BUG = 64
{-# LINE 190 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 191 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_SSLEAY_080_CLIENT_DH_BUG = 0
{-# LINE 192 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_TLS_D5_BUG = 0
{-# LINE 193 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_TLS_BLOCK_PADDING_BUG = 0
{-# LINE 194 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 195 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS = 2048
{-# LINE 196 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 197 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 198 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_TLSEXT_PADDING = 16
{-# LINE 199 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 200 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_ALL = 2147485776
{-# LINE 201 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 202 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_TLS_ROLLBACK_BUG = 8388608
{-# LINE 203 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 204 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_SINGLE_DH_USE = 0
{-# LINE 205 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_EPHEMERAL_RSA = 0
{-# LINE 206 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 207 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_CIPHER_SERVER_PREFERENCE = 4194304
{-# LINE 208 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 209 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_PKCS1_CHECK_1 = 0
{-# LINE 210 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_PKCS1_CHECK_2 = 0
{-# LINE 211 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NETSCAPE_CA_DN_BUG = 0
{-# LINE 212 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG = 0
{-# LINE 213 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_SSLv2 = 0
{-# LINE 214 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_SSLv3 = 33554432
{-# LINE 215 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_TLSv1 = 67108864
{-# LINE 216 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_TLSv1_1 = 268435456
{-# LINE 217 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_TLSv1_2 = 134217728
{-# LINE 218 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 219 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_TLSv1_3 = 536870912
{-# LINE 220 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 221 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 222 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_DTLSv1 = 67108864
{-# LINE 223 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 224 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 225 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_DTLSv1_2 = 134217728
{-# LINE 226 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 227 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 228 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION = 65536
{-# LINE 229 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 230 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_TICKET = 16384
{-# LINE 231 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 232 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION = 262144
{-# LINE 233 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 234 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 235 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_LEGACY_SERVER_CONNECT = 4
{-# LINE 236 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 237 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 238 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_EXTENDED_MASTER_SECRET = 1
{-# LINE 239 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 240 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 241 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_CLEANSE_PLAINTEXT = 2
{-# LINE 242 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 243 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 244 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_ENABLE_KTLS = 8
{-# LINE 245 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 246 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 247 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_IGNORE_UNEXPECTED_EOF = 128
{-# LINE 248 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 249 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 250 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_ALLOW_CLIENT_RENEGOTIATION = 256
{-# LINE 251 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 252 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 253 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_DISABLE_TLSEXT_CA_NAMES = 512
{-# LINE 254 "OpenSSL/SSL/Option.hsc" #-}
{-# LINE 255 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_ANTI_REPLAY = 16777216
{-# LINE 256 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_PRIORITIZE_CHACHA = 2097152
{-# LINE 257 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_ENABLE_MIDDLEBOX_COMPAT = 1048576
{-# LINE 258 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_ENCRYPT_THEN_MAC = 524288
{-# LINE 259 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_ALLOW_NO_DHE_KEX = 1024
{-# LINE 260 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_QUERY_MTU = 4096
{-# LINE 261 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_COOKIE_EXCHANGE = 8192
{-# LINE 262 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_COMPRESSION = 131072
{-# LINE 263 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_NO_RENEGOTIATION = 1073741824
{-# LINE 264 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_CRYPTOPRO_TLSEXT_BUG = 2147483648
{-# LINE 265 "OpenSSL/SSL/Option.hsc" #-}
optionToIntegral SSL_OP_CISCO_ANYCONNECT = 32768