aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2023-01-09 23:59:31 -0900
committerDavid M. Syzdek <david@syzdek.net>2023-01-10 00:01:10 -0900
commitefe30fd93111ed7984b8a735f52376ff7bb5c0f9 (patch)
tree4b5bdf20160b655bca3bc35b0113149f01bb3fc9 /lib
parent8ea93ca14b94ab1f74b7d9ca293fce720f8ec0c6 (diff)
downloadotputils-efe30fd93111ed7984b8a735f52376ff7bb5c0f9.tar.gz
otputils-efe30fd93111ed7984b8a735f52376ff7bb5c0f9.tar.bz2
otputils-efe30fd93111ed7984b8a735f52376ff7bb5c0f9.tar.xz
otputils-efe30fd93111ed7984b8a735f52376ff7bb5c0f9.zip
libotputil: adding ldict-rfc1760.h
Diffstat (limited to 'lib')
-rw-r--r--lib/libotputil/ldict-rfc1760.c2
-rw-r--r--lib/libotputil/ldict-rfc1760.h57
-rw-r--r--lib/libotputil/libotputil.c2
-rw-r--r--lib/libotputil/libotputil.h10
4 files changed, 60 insertions, 11 deletions
diff --git a/lib/libotputil/ldict-rfc1760.c b/lib/libotputil/ldict-rfc1760.c
index 4c92ef8..159e123 100644
--- a/lib/libotputil/ldict-rfc1760.c
+++ b/lib/libotputil/ldict-rfc1760.c
@@ -31,7 +31,7 @@
31 * @file lib/libotputil/libotputil.c 31 * @file lib/libotputil/libotputil.c
32 */ 32 */
33#define _LIB_LDICT_RFC1760_C 1 33#define _LIB_LDICT_RFC1760_C 1
34#include "libotputil.h" 34#include "ldict-rfc1760.h"
35 35
36 36
37///////////////// 37/////////////////
diff --git a/lib/libotputil/ldict-rfc1760.h b/lib/libotputil/ldict-rfc1760.h
new file mode 100644
index 0000000..b7ee24b
--- /dev/null
+++ b/lib/libotputil/ldict-rfc1760.h
@@ -0,0 +1,57 @@
1/*
2 * OTP Utilities
3 * Copyright (C) 2022 David M. Syzdek <david@syzdek.net>.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * * Neither the name of David M. Syzdek nor the
15 * names of its contributors may be used to endorse or promote products
16 * derived from this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
19 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M SYZDEK BE LIABLE FOR
22 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30/*
31 * @file lib/libotputil/ldict-rfc1760.h
32 */
33#ifndef _LIB_LIBOTPUTIL_LDICT_RFC1760_H
34#define _LIB_LIBOTPUTIL_LDICT_RFC1760_H 1
35
36
37///////////////
38// //
39// Headers //
40// //
41///////////////
42#pragma mark - Headers
43
44#include "libotputil.h"
45
46
47/////////////////
48// //
49// Variables //
50// //
51/////////////////
52#pragma mark - Variables
53
54extern const char * otputil_dict_rfc1760[];
55
56
57#endif /* end of header file */
diff --git a/lib/libotputil/libotputil.c b/lib/libotputil/libotputil.c
index 324e4bf..702a328 100644
--- a/lib/libotputil/libotputil.c
+++ b/lib/libotputil/libotputil.c
@@ -49,6 +49,8 @@
49#include <openssl/evp.h> 49#include <openssl/evp.h>
50#include <openssl/hmac.h> 50#include <openssl/hmac.h>
51 51
52#include "ldict-rfc1760.h"
53
52 54
53////////////////// 55//////////////////
54// // 56// //
diff --git a/lib/libotputil/libotputil.h b/lib/libotputil/libotputil.h
index f9ca3c0..2d7369c 100644
--- a/lib/libotputil/libotputil.h
+++ b/lib/libotputil/libotputil.h
@@ -95,16 +95,6 @@ struct _otputil_map
95}; 95};
96 96
97 97
98/////////////////
99// //
100// Variables //
101// //
102/////////////////
103#pragma mark - Variables
104
105extern const char * otputil_dict_rfc1760[];
106
107
108////////////////// 98//////////////////
109// // 99// //
110// Prototypes // 100// Prototypes //