summaryrefslogtreecommitdiffstats
path: root/apps/apps.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-01-30 22:03:27 +0100
committerRichard Levitte <levitte@openssl.org>2018-02-01 07:10:47 +0100
commit39556e63ef6c079d144b07d7f492152abf9efe77 (patch)
tree67a636f8c781ddc2e28a7f290a7e004a77ef1f55 /apps/apps.h
parent3cb413da197c26c4520cbf08e5d4542637a90a4e (diff)
Add an apps internal BIO filter for prefixing output lines
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5224)
Diffstat (limited to 'apps/apps.h')
-rw-r--r--apps/apps.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/apps.h b/apps/apps.h
index a740ad4599..272b967d18 100644
--- a/apps/apps.h
+++ b/apps/apps.h
@@ -1,5 +1,5 @@
/*
- * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -48,6 +48,14 @@ extern const unsigned char tls13_aes128gcmsha256_id[];
extern const unsigned char tls13_aes256gcmsha384_id[];
extern BIO_ADDR *ourpeer;
+BIO_METHOD *apps_bf_prefix(void);
+/*
+ * The control used to set the prefix with BIO_ctrl()
+ * We make it high enough so the chance of ever clashing with the BIO library
+ * remains unlikely for the foreseeable future and beyond.
+ */
+#define PREFIX_CTRL_SET_PREFIX (1 << 15)
+
BIO *dup_bio_in(int format);
BIO *dup_bio_out(int format);
BIO *dup_bio_err(int format);