Skip to content

Something a little funny in the code of SslStreamServer.cs #1

@bnimble

Description

@bnimble

In InitializeServerContext, it takes great pains to set the bits on sslContext.Options, e.g.

        if ((enabledSslProtocols & SslProtocols.Ssl2) != SslProtocols.Ssl2)
        {
            sslContext.Options |= SslOptions.SSL_OP_NO_SSLv2;
        }

...but then the options get summarily overwritten on line 172:

        // Set the workaround options
        sslContext.Options = SslOptions.SSL_OP_ALL;

Did it mean to do that? I'm in large part wondering because I'm running into an "error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number" when contacting this as an SslStream server, which purportedly happens if SSLv3 is not enabled in the Options.

(Of course, there's also a small comment in the code "// no SSLv3 support". Is that the case?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions