-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Tls plugin #343
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
Tls plugin #343
Conversation
Add support for https in backup.
…disable checking.
| { TLSOptions::OPT_TLS_VERIFY_PEERS, TLS_VERIFY_PEERS_FLAG, SO_REQ_SEP }, \ | ||
| { TLSOptions::OPT_TLS_PASSWORD, TLS_PASSWORD_FLAG, SO_REQ_SEP }, \ | ||
| { TLSOptions::OPT_TLS_CA_FILE, TLS_CA_FILE_FLAG, SO_REQ_SEP }, | ||
|
|
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 white space seems wrong
| description="Set the ca bundle" /> | ||
| <Option name="TLS_ca_path" code="53" | ||
| paramType="String" paramDescription="file path" | ||
| description="Set the file from which to load the certificate authority bundle" /> |
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.
Inconsistent indenting
fdbrpc/TLSConnection.h
Outdated
|
|
||
| TLSOptions() : certs_set(false), key_set(false), verify_peers_set(false) {} | ||
| enum { OPT_TLS = 100000, OPT_TLS_PLUGIN, OPT_TLS_CERTIFICATES, OPT_TLS_KEY, OPT_TLS_VERIFY_PEERS, OPT_TLS_CA_FILE }; | ||
| enum POLICY_TYPE { POLICY_VERIFY_PEERS = 1, POLICY_NO_VERIFY_PEERS }; |
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.
s/POLICY_TYPE/PolicyType/, and preferably enum class.
fdbrpc/TLSConnection.h
Outdated
| void register_network(); | ||
|
|
||
| Reference<ITLSPolicy> get_policy(); | ||
| Reference<ITLSPolicy> get_policy(enum POLICY_TYPE type); |
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.
enum POLICY_TYPE -> PolicyType.
Remove redundant FDBLibTLS/ITLSPlugin.h.
Integrate new tls plugin and add https support for backup