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

  • SEARCH
  • Home
  • 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 279421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:01:52+00:00 2026-05-12T05:01:52+00:00

I am relatively new to socket programming so this may sound like a very

  • 0

I am relatively new to socket programming so this may sound like a very lame question.
I have to use authenticated TCP(MD5 as a TCP option to start with) as a transport for some application. I was wondering if this could be done using the sockets API or there is some other form of an existing TCP APIs that I could use to do the same. I would appreciate if I could get some help with this.

  • 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-12T05:01:52+00:00Added an answer on May 12, 2026 at 5:01 am

    I’m a bit confused by your question. You can certainly set socket options on a socket using the setsockopt function, but by the sound of the rest of your question, this isn’t quite what you mean. I’ve never heard of any transport protocol called Authenticated TCP and google throws up nothing useful. Is it a standard; is there an RFC?

    If you’re just wanting a secure, authenticated TCP transport layer, then you should look in to Secure Sockets Layer, or SSL for short, or its replacement, Transport Layer Security, or TLS for short. There will almost certainly be an implementation for whatever language you’re using (you haven’t specified).

    • For C/C++, there’s: OpenSSL
    • For .Net, there’s: SslStream
    • For Java, there’s the Secure Socket Extensions

    Also, what do you mean by MD5 for authentication? MD5 is a hashing algorithm, however it’s not collision resistant enough for use in communication that requires secure signatures.

    Edit aha! You’re talking about TCP options, I understand now. I haven’t seen any implementations of that particular TCP option built in to any of the socket APIs, so you may be out of luck here. It depends on the implementation you use, but it might be especially rare given that this is a fairly obscure TCP option designed for enhancing the border gateway protocol, not something you would usually have use for outside of routing software. In case it is supported, you would set it something like this:

    BOOL optVal = TRUE;
    int optLen = sizeof(BOOL);
    
    if (setsockopt(
          socket,
          IPPROTO_TCP,
          TCP_WHATEVER,
          optVal,
          optLen) != SOCKET_ERROR) {
        printf("Success\n");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

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.