summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-07-13 23:19:02 +0000
committerjsing <jsing@openbsd.org>2014-07-13 23:19:02 +0000
commit1bb4181ebdfdff2b1c9ecfa8711abbdf5a2dea65 (patch)
treeef3048f519e5eb7b6b07668c9a8bea6b5eae7e77
parentuse mallocarray (diff)
downloadwireguard-openbsd-1bb4181ebdfdff2b1c9ecfa8711abbdf5a2dea65.tar.xz
wireguard-openbsd-1bb4181ebdfdff2b1c9ecfa8711abbdf5a2dea65.zip
Tabs, not spaces.
-rw-r--r--lib/libressl/ressl.c10
-rw-r--r--lib/libressl/ressl_config.c10
-rw-r--r--lib/libressl/ressl_internal.h24
3 files changed, 22 insertions, 22 deletions
diff --git a/lib/libressl/ressl.c b/lib/libressl/ressl.c
index 08ec061bf58..bc257bd1a87 100644
--- a/lib/libressl/ressl.c
+++ b/lib/libressl/ressl.c
@@ -50,16 +50,16 @@ ressl_error(struct ressl *ctx)
int
ressl_set_error(struct ressl *ctx, char *fmt, ...)
{
- va_list ap;
- int rv;
+ va_list ap;
+ int rv;
ctx->err = errno;
free(ctx->errmsg);
ctx->errmsg = NULL;
- va_start(ap, fmt);
- rv = vasprintf(&ctx->errmsg, fmt, ap);
- va_end(ap);
+ va_start(ap, fmt);
+ rv = vasprintf(&ctx->errmsg, fmt, ap);
+ va_end(ap);
return (rv);
}
diff --git a/lib/libressl/ressl_config.c b/lib/libressl/ressl_config.c
index ebca78e413a..6205b6c5597 100644
--- a/lib/libressl/ressl_config.c
+++ b/lib/libressl/ressl_config.c
@@ -24,11 +24,11 @@
* Default configuration.
*/
struct ressl_config ressl_config_default = {
- .ca_file = _PATH_SSL_CA_FILE,
- .ca_path = NULL,
- .ciphers = NULL,
- .verify = 1,
- .verify_depth = 6,
+ .ca_file = _PATH_SSL_CA_FILE,
+ .ca_path = NULL,
+ .ciphers = NULL,
+ .verify = 1,
+ .verify_depth = 6,
};
struct ressl_config *
diff --git a/lib/libressl/ressl_internal.h b/lib/libressl/ressl_internal.h
index 260ae8e1f93..c2341535877 100644
--- a/lib/libressl/ressl_internal.h
+++ b/lib/libressl/ressl_internal.h
@@ -25,28 +25,28 @@
#define _PATH_SSL_CA_FILE "/etc/ssl/cert.pem"
struct ressl_config {
- const char *ca_file;
- const char *ca_path;
- const char *ciphers;
- const char *server_name;
- int verify;
- int verify_depth;
+ const char *ca_file;
+ const char *ca_path;
+ const char *ciphers;
+ const char *server_name;
+ int verify;
+ int verify_depth;
};
#define RESSL_CLIENT (1 << 0)
#define RESSL_SERVER (1 << 1)
struct ressl {
- struct ressl_config *config;
+ struct ressl_config *config;
uint64_t flags;
- int err;
- char *errmsg;
+ int err;
+ char *errmsg;
- int socket;
+ int socket;
- SSL *ssl_conn;
- SSL_CTX *ssl_ctx;
+ SSL *ssl_conn;
+ SSL_CTX *ssl_ctx;
};
struct ressl *ressl_new(void);