Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 551403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:23:24+00:00 2026-05-13T11:23:24+00:00

As described here http://www.ddj.com/cpp/184401688 I do not have time to write this from scratch.

  • 0

As described here
http://www.ddj.com/cpp/184401688

I do not have time to write this from scratch.

Asked and not answered
https://stackoverflow.com/questions/434961/implementing-ssl

THE QUESTION IS:

I am looking for some compilable working source code that implements MS SSPI (as alluded to in the thread above), procedural not OOP preferred.

I have looked at the code projects sample here:

http://www.codeproject.com/KB/IP/sslclasses.aspx

But this is C# OOP. Converting this to C++ code is not trivial.

OpenSSL

SChannel calls follow GSS API standards. There are, of course, some alternatives — OpenSSL for example. This package is a complete and thorough implementation of the protocol and for someone all too familiar with UNIX is undoubtedly the best choice. The package originally targeted the UNIX community and to compile it relies on the Perl runtime, so some learning curve is required for Windows developers who never worked with UNIX-type systems.

Apart from that, OpenSLL does some very non-standard things

Nikolai,
Having contibuted a lot of COMPILABLE source code
(www.coastrd.com)
I was hoping to find someone willing to do the same.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:23:25+00:00Added an answer on May 13, 2026 at 11:23 am

    This SSPI SChannel SMTPS example should compile and run in Visual Studio 2008 as is

    http://www.coastrd.com/c-schannel-smtp (the original site seems dead; fortunately WaybackMachine has it archived)

    SChannel is the Microsoft implementation of the GSS API that wraps the SSL/TLS protocol.

    Advantages of utilizing SChannel:

    • gory details are shielded from the developer by the SSPI.
    • No extra setup is required to run the final application:
    • SChannel is an integral part of the operating system
    • On Windows ME/2000/XP/… platforms, SChannel is installed and configured by default
    • SChannel calls follow GSS API standards.
    • You do not need to create/install any certificates
    • no third party dll’s (1MB or larger) to ship and install

    The code should produce a session that looks like this:

    —– SSPI Initialized
    —– WinSock Initialized
    —– Credentials Initialized
    —– Connectd To Server
    70 bytes of handshake data sent
    974 bytes of handshake data received
    182 bytes of handshake data sent
    43 bytes of handshake data received
    Handshake was successful
    —– Client Handshake Performed
    —– Server Credentials Authenticated

    Server subject: C=US, S=California, L=Mountain View, O=Google Inc, CN=smtp.gmail.com
    Server issuer: C=ZA, S=Western Cape, L=Cape Town, O=Thawte Consulting cc, OU=Certification Services Division, CN=Thawte Premium Server CA, E=premium-server@thawte.com

    —– Certificate Chain Displayed
    —– Server Certificate Verified
    —– Server certificate context released

    Protocol: TLS1
    Cipher: RC4
    Cipher strength: 128
    Hash: MD5
    Hash strength: 128
    Key exchange: RSA
    Key exchange strength: 1024
    —– Secure Connection Info
    64 bytes of (encrypted) application data received
    Decrypted data: 43 bytes
    220 mx.google.com ESMTP 6sm17740567yxg.66

    Sending 7 bytes of plaintext:
    EHLO

    28 bytes of encrypted data sent
    169 bytes of (encrypted) application data received
    Decrypted data: 148 bytes
    250-mx.google.com at your service, [22.33.111.222]
    250-SIZE 35651584
    250-8BITMIME
    250-AUTH LOGIN PLAIN
    250-ENHANCEDSTATUSCODES
    250 PIPELINING

    Sending 7 bytes of plaintext:
    QUIT

    28 bytes of encrypted data sent
    69 bytes of (encrypted) application data received
    Decrypted data: 48 bytes
    221 2.0.0 closing connection 6sm17740567yxg.66

    —– SMTP session Complete
    Sending Close Notify
    23 bytes of handshake data sent
    —– Disconnected From Server
    —– Begin Cleanup
    —– All Done —–

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 442k
  • Answers 442k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer if it's just padded to the right, you can use… May 15, 2026 at 5:53 pm
  • Editorial Team
    Editorial Team added an answer The short answer is that it makes brute force dictionary… May 15, 2026 at 5:53 pm
  • Editorial Team
    Editorial Team added an answer After reading more, the answer can be found on the… May 15, 2026 at 5:53 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.