diff options
author | Will Drewry <drewry@google.com> | 2015-08-24 11:52:15 -0700 |
---|---|---|
committer | Will Drewry <drewry@google.com> | 2015-08-24 11:52:15 -0700 |
commit | e96e2217decd173041388dd2664b1985587b099f (patch) | |
tree | cc84b6e344438f3edda56caa5d8e33f0ff39667e /src/proxy-bio.h | |
parent | 4a7dd9b16b350e4218dfefb9f82b030b01226248 (diff) | |
parent | ae396da167a9e43ce10c2db0956fb2e2b0d400ea (diff) | |
download | tlsdate-e96e2217decd173041388dd2664b1985587b099f.tar.gz |
Import upstream tlsdate with history
Diffstat (limited to 'src/proxy-bio.h')
-rw-r--r-- | src/proxy-bio.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/proxy-bio.h b/src/proxy-bio.h new file mode 100644 index 0000000..3a68153 --- /dev/null +++ b/src/proxy-bio.h @@ -0,0 +1,32 @@ +/* + * proxy-bio.h - BIO layer for transparent proxy connections + * + * Copyright (c) 2012 The Chromium Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef PROXY_BIO_H +#define PROXY_BIO_H + +#include <stdint.h> + +#include <openssl/bio.h> + +#include "util.h" + +struct proxy_ctx { + char *host; + uint16_t port; + int connected; + int (*connect)(BIO *b); +}; + +BIO *BIO_new_proxy(); + +/* These do not take ownership of their string arguments. */ +int BIO_proxy_set_type (BIO *b, const char *type); +int BIO_proxy_set_host (BIO *b, const char *host); +void BIO_proxy_set_port (BIO *b, uint16_t port); + +#endif /* !PROXY_BIO_H */ |