-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Support QUIC with the msg_callback and -trace in s_client #20914
Closed
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
f2cc537
Add initial QUIC support for the msg_callback
mattcaswell cdd23bb
Support trace for QUIC datagrams
mattcaswell 15bcc1e
Support trace for QUIC Packets
mattcaswell a05f30d
Support trace for QUIC Frames
mattcaswell f8c0974
Extend tracing of frames to transmitted frames
mattcaswell 827c96e
Enable tracing of packets that have been sent
mattcaswell 46dac8f
Enable tracing of datagrams we have sent
mattcaswell 741d10a
Properly handling stream/crypto frames while tracing
mattcaswell 6baf7dc
Add more trace details for the remaining frame types
mattcaswell 8808f36
Update the msg_callback documentation
mattcaswell df47f74
Fix an SSL_trace bug
mattcaswell e82e8fa
Add a test for the new QUIC tracing capability
mattcaswell 7b2768e
fixup! Extend tracing of frames to transmitted frames
mattcaswell 1daebdf
Create setter functions for the msg_callback and msg_callback_arg
mattcaswell 4afae1d
fixup! Update the msg_callback documentation
mattcaswell 0a30b72
fixup! Enable tracing of packets that have been sent
mattcaswell da0cb7c
fixup! Create setter functions for the msg_callback and msg_callback_arg
mattcaswell dd7118e
Use the %llu format specifier for uint64_t
mattcaswell 7c711bd
fixup! Fix an SSL_trace bug
mattcaswell 0190d2a
Rename msg_callback_s to msg_callback_ssl for greater clarity
mattcaswell ad6aa7c
fixup! Support trace for QUIC Frames
mattcaswell c9f80b1
fixup! Create setter functions for the msg_callback and msg_callback_arg
mattcaswell 2f3b6c5
Create internal/ssl.h
mattcaswell 5fc5736
fixup! Add a test for the new QUIC tracing capability
mattcaswell ce22275
fixup! Create internal/ssl.h
mattcaswell 65152c0
fixup! Add a test for the new QUIC tracing capability
mattcaswell File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright 2023 The OpenSSL Project Authors. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License 2.0 (the "License"). You may not use | ||
* this file except in compliance with the License. You can obtain a copy | ||
* in the file LICENSE in the source distribution or at | ||
* https://www.openssl.org/source/license.html | ||
*/ | ||
|
||
#include <openssl/ssl.h> | ||
|
||
#ifndef OSSL_INTERNAL_SSL_H | ||
# define OSSL_INTERNAL_SSL_H | ||
# pragma once | ||
|
||
typedef void (*ossl_msg_cb)(int write_p, int version, int content_type, | ||
const void *buf, size_t len, SSL *ssl, void *arg); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SSL3_RT_ prefix sounds quite awkward for something that has no relation to SSL3 at all. Perhaps OSSL_RT_.... would be better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. But the problem here is that the SSL3_RT_ prefix is well established for this namespace and is legacy. It would be quite weird to have some values in the same space to have different prefixes. Plausibly we could introduce
OSSL_RT_*
everywhere and have some compatibility defines for old usage ofSSL3_RT_*
but this is a significant change with knock-on impacts throughout libssl. The SSL3_RT_ values are used beyond just the msg_callback. I'd rather not do that in this PR.