blob: b46df80f262d341ef811c37733dc4c68e37492d9 [file] [log] [blame]
/*
* 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"
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_target_host (BIO *b, const char *host);
void BIO_proxy_set_target_port (BIO *b, uint16_t port);
#endif /* !PROXY_BIO_H */