Skip to content

feat(wish): add TLS support (BoringSSL for now) + some tweaks#18

Merged
tyoshino merged 5 commits intomainfrom
takeshi/tweak
Mar 2, 2026
Merged

feat(wish): add TLS support (BoringSSL for now) + some tweaks#18
tyoshino merged 5 commits intomainfrom
takeshi/tweak

Conversation

@tyoshino
Copy link
Collaborator

No description provided.

@tyoshino tyoshino marked this pull request as draft February 26, 2026 04:41
Comment on lines +3 to +12
#include <event2/bufferevent_ssl.h>
#include <event2/dns.h>
#include <event2/event.h>
#include <openssl/ssl.h>

#include <cstring>
#include <iostream>
#include <string>

#include "../src/tls_context.h"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

adjusted include order to comply with Google C++ Style Guide. The same about the other files.

event_base_free(base);

return 0;
// Initialize OpenSSL
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, sorry, I included indentation formatting in this PR by mistake...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

reverted indentation change to make it easier to review

set(EVENT__DISABLE_MBEDTLS ON CACHE BOOL "" FORCE)

# Exclude tests, sample files, etc. that we don't need.
set(EVENT__DISABLE_BENCHMARKS ON CACHE BOOL "" FORCE)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removing benchmark code, too

GIT_TAG main
)

# Disable OpenSSL and Mbed TLS. We use BoringSSL instead.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

certificates and keys for testing generated by using openssl

@tyoshino tyoshino marked this pull request as ready for review February 26, 2026 05:07
@tyoshino tyoshino changed the title feat(wish): add TLS support + some tweaks feat(wish): add TLS support (BoringSSL for now) + some tweaks Feb 26, 2026
@tyoshino tyoshino requested a review from wenbozhu February 26, 2026 05:07
@google google deleted a comment from tyoshino Feb 27, 2026
}
}

void TlsContext::set_identity_certificate_path(const std::string& path) { identity_certificate_path_ = path; }
Copy link
Collaborator

Choose a reason for hiding this comment

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

re: naming, let's follow openssl conventions

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done!

Copy link
Collaborator

@wenbozhu wenbozhu left a comment

Choose a reason for hiding this comment

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

Thanks.

@tyoshino tyoshino merged commit cef8efb into main Mar 2, 2026
2 checks passed
@tyoshino tyoshino deleted the takeshi/tweak branch March 2, 2026 03:24
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.

2 participants