From ed93b3356bba914d6d7ec72c2e03fc5bd1925326 Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Tue, 14 Mar 2017 15:24:18 +0100 Subject: Bug 1339768 - Add TLS server fuzzers r=franziskus Differential Revision: https://nss-review.dev.mozaws.net/D229 --- cpputil/cpputil.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cpputil/cpputil.h (limited to 'cpputil') diff --git a/cpputil/cpputil.h b/cpputil/cpputil.h new file mode 100644 index 000000000..017ce9bfc --- /dev/null +++ b/cpputil/cpputil.h @@ -0,0 +1,12 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef cpputil_h__ +#define cpputil_h__ + +static unsigned char* toUcharPtr(const uint8_t* v) { + return const_cast(static_cast(v)); +} + +#endif // cpputil_h__ -- cgit v1.2.1