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 696699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:05:25+00:00 2026-05-14T03:05:25+00:00

is there additional header which is presented by openssl before sending the message to

  • 0

is there additional header which is presented by openssl before sending the message to socket ?

Thanks

  • 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-14T03:05:26+00:00Added an answer on May 14, 2026 at 3:05 am

    I assume you’re talking about TLS (“Secured TCP”).

    Then yes. Once the handshake between client and server is done, the “data” messages usually start with 3 special bytes (if I remember well) that indicates to the SSL layer that the frame is ciphered.

    On the other hand, you cannot assume that the size of a ciphered frame will be the same of the raw frame/data.

    Here you get an example function in C/C++.

        bool isCiphered(const char* buf, size_t buflen)
        {
            if (buflen < 3)
            {
                return false;
            }
    
            uint8_t c = buf[0];
    
            switch (c)
            {
                case 0x14:
                case 0x15:
                case 0x16:
                case 0x17:
                    {
                        uint8_t v1 = buf[1];
                        uint8_t v2 = buf[2];
    
                        /* TLS v1 */
                        if ((v1 == 0x03) && (v2 == 0x01))
                        {
                            return true;
                        }
    
                        /* DTLS v1 */
                        if ((v1 == 0xfe) && (v2 == 0xff))
                        {
                            return true;
                        }
    
                        break;
                    }
            }
    
            return false;
        }
    

    I had to adapt my existing code so i’m not sure that compiles, but you should get the idea.

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

Sidebar

Related Questions

Is there some additional configuration needed before I can set thread priorities in a
are there any additional WPF themes from microsoft except that default ones provided in
I am wondering if there are any additional optimizations I can implement to improve
Is there a straighforward way to set additional text to appear in a tooltip
Is there a way to query a full text index to help determine additional
is there any standard approach which I've missed at school to dump C structure
I have a visual studio-2010 project which contains lots of source files and header
I have the following in a 3rd party core header, which i would prefer
I have a ListView with set CHOICE_MODE_MULTIPLE. I also have additional header to manage
I have a common HTML header file which I use in several PHP files.

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.