X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/fa7225c82381bac4432a6edf16f53b5370238d85..7e6b461318c8a779d91381531435a68ee4e8b6ed:/OSX/libsecurity_ssl/lib/SSLRecordInternal.c diff --git a/OSX/libsecurity_ssl/lib/SSLRecordInternal.c b/OSX/libsecurity_ssl/lib/SSLRecordInternal.c index 8e494509..8da7af2a 100644 --- a/OSX/libsecurity_ssl/lib/SSLRecordInternal.c +++ b/OSX/libsecurity_ssl/lib/SSLRecordInternal.c @@ -282,7 +282,7 @@ static int SSLSetInternalRecordLayerProtocolVersion(SSLRecordContextRef ref, SSLProtocolVersion negVersion) { struct SSLRecordInternalContext *ctx = ref; - return tls_record_set_protocol_version(ctx->filter, negVersion); + return tls_record_set_protocol_version(ctx->filter, (tls_protocol_version) negVersion); } static int @@ -323,10 +323,8 @@ SSLRecordSetOption(SSLRecordContextRef ref, SSLRecordOption option, bool value) switch (option) { case kSSLRecordOptionSendOneByteRecord: return tls_record_set_record_splitting(ctx->filter, value); - break; default: return 0; - break; } }