diff options
author | Tim Taubert <ttaubert@mozilla.com> | 2017-03-14 15:24:18 +0100 |
---|---|---|
committer | Tim Taubert <ttaubert@mozilla.com> | 2017-03-14 15:24:18 +0100 |
commit | ed93b3356bba914d6d7ec72c2e03fc5bd1925326 (patch) | |
tree | 7e81ffdeb2181c102102e20514140c19dbd16d08 /cpputil | |
parent | c84fb4afcdeb8920340aa985718227efd8399efc (diff) | |
download | nss-hg-ed93b3356bba914d6d7ec72c2e03fc5bd1925326.tar.gz |
Bug 1339768 - Add TLS server fuzzers r=franziskus
Differential Revision: https://nss-review.dev.mozaws.net/D229
Diffstat (limited to 'cpputil')
-rw-r--r-- | cpputil/cpputil.h | 12 |
1 files changed, 12 insertions, 0 deletions
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<unsigned char*>(static_cast<const unsigned char*>(v)); +} + +#endif // cpputil_h__ |