Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2016-07-08 00:52:02 +0300
committerDavid Benjamin <davidben@google.com>2016-07-11 21:45:01 +0300
commit403c52aa94760051f93e4388a2966c0fd9422c2b (patch)
tree643947e1e6964f627215ce79629da0fdc7276e67 /tool/transport_common.h
parentabe22b605fe749cde743632d01cc09125684dd3e (diff)
Support “-starttls smtp” in `bssl client`
This change adds support for doing an SMTP STARTTLS dance before a TLS handshake when using the tool. This is useful for poking at SMTP servers. Change-Id: I04cd60d02d3377cce83e412d62e3257235a19116 Reviewed-on: https://boringssl-review.googlesource.com/8662 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'tool/transport_common.h')
-rw-r--r--tool/transport_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/transport_common.h b/tool/transport_common.h
index b7010158..a57a9169 100644
--- a/tool/transport_common.h
+++ b/tool/transport_common.h
@@ -39,5 +39,8 @@ int PrintErrorCallback(const char *str, size_t len, void *ctx);
bool TransferData(SSL *ssl, int sock);
+// DoSMTPStartTLS performs the SMTP STARTTLS mini-protocol over |sock|. It
+// returns true on success and false otherwise.
+bool DoSMTPStartTLS(int sock);
#endif /* !OPENSSL_HEADER_TOOL_TRANSPORT_COMMON_H */