Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL/TLS implementation #37

Merged
merged 27 commits into from
May 30, 2014
Merged

SSL/TLS implementation #37

merged 27 commits into from
May 30, 2014

Conversation

dimdin
Copy link
Collaborator

@dimdin dimdin commented May 29, 2014

@denisenkom please review
closes #27

}
if encrypt == encryptOff {
outbuf.afterFirst = func() {
outbuf.transport = toconn
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure this will work? I mean will server drop encryption after login, I didn't see such feature in docs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copying from table in 2.2.6.4: Value returned from server is ENCRYPT_OFF: Encrypt login packet only
copying from 3.2.5.2:
If login-only encryption was negotiated as described in section 2.2 in the PRELOGIN message description, then the first TDS packet of the Login message MUST be encrypted using TLS/SSL and encapsulated in a TLS/SSL message. All other TDS packets sent or received MUST be in plaintext.

@denisenkom
Copy link
Owner

Ok, I approve this pull request

dimdin added a commit that referenced this pull request May 30, 2014
@dimdin dimdin merged commit 2555ba8 into master May 30, 2014
@dimdin dimdin deleted the ssl branch May 30, 2014 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for SSL encryption
2 participants