Updates to try to fix undefined symbol errors
authorDan Breslau <dbreslau@painless-security.com>
Mon, 12 Sep 2016 20:05:29 +0000 (16:05 -0400)
committerDan Breslau <dbreslau@painless-security.com>
Mon, 12 Sep 2016 20:05:29 +0000 (16:05 -0400)
libeap/Makefile.am
libeap/src/crypto/crypto.h
libeap/src/utils/eloop.h
mech_eap/util.h
mech_eap/util_oid.c

index 890a9ea..55d7819 100644 (file)
@@ -99,6 +99,7 @@ AM_CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
 AM_CFLAGS += -DCONFIG_INTERNAL_SHA1
 AM_CFLAGS += -DEAP_TLS_OPENSSL
 AM_CFLAGS += -DPKCS12_FUNCS
+AM_CFLAGS += -DCONFIG_CRYPTO_INTERNAL
 AM_CFLAGS += -DCONFIG_SHA256
 
 UTILS_SRCS = src/utils/base64.c \
@@ -111,11 +112,12 @@ UTILS_SRCS = src/utils/base64.c \
        src/utils/wpabuf.c \
        src/utils/os_unix.c \
        src/utils/radius_utils.c \
-src/utils/radius_utils.h \
+       src/utils/radius_utils.h \
        src/utils/base64.h \
        src/utils/build_config.h \
        src/utils/common.h \
        src/utils/eloop.h \
+       src/utils/eloop.c \
        src/utils/includes.h \
        src/utils/ip_addr.h \
        src/utils/list.h \
@@ -145,6 +147,7 @@ CRYPTO_SRCS = \
     src/crypto/aes-siv.h \
     src/crypto/aes-unwrap.c \
     src/crypto/aes-wrap.c \
+    src/crypto/tls_openssl.c \
     src/crypto/aes.h \
     src/crypto/aes_i.h \
     src/crypto/aes_wrap.h \
@@ -160,6 +163,8 @@ CRYPTO_SRCS = \
     src/crypto/milenage.h \
     src/crypto/ms_funcs.c \
     src/crypto/ms_funcs.h \
+    src/crypto/random.c \
+    src/crypto/random.h \
     src/crypto/rc4.c \
     src/crypto/sha1.c \
     src/crypto/sha1-internal.c \
@@ -167,6 +172,7 @@ CRYPTO_SRCS = \
     src/crypto/sha1-prf.c \
     src/crypto/sha1-tlsprf.c \
     src/crypto/sha1-tprf.c \
+    src/crypto/sha256-internal.c \
     src/crypto/sha256-prf.c \
     src/crypto/sha256-tlsprf.c \
     src/crypto/sha256.c \
index 534c4bd..368bacf 100644 (file)
 #ifndef CRYPTO_H
 #define CRYPTO_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /**
  * md4_vector - MD4 hash for data vector
  * @num_elem: Number of elements in the data vector
@@ -806,4 +811,9 @@ int crypto_ec_point_cmp(const struct crypto_ec *e,
                        const struct crypto_ec_point *a,
                        const struct crypto_ec_point *b);
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* CRYPTO_H */
index 07b8c0d..00233a0 100644 (file)
 #ifndef ELOOP_H
 #define ELOOP_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /**
  * ELOOP_ALL_CTX - eloop_cancel_timeout() magic number to match all timeouts
  */
@@ -356,4 +361,8 @@ int eloop_terminated(void);
  */
 void eloop_wait_for_read_sock(int sock);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* ELOOP_H */
index 62b9f22..f1b4597 100644 (file)
@@ -655,17 +655,8 @@ duplicateOidSet(OM_uint32 *minor,
                 const gss_OID_set src,
                 gss_OID_set *dst);
 
-static inline int
-oidEqual(const gss_OID_desc *o1, const gss_OID_desc *o2)
-{
-    if (o1 == GSS_C_NO_OID)
-        return (o2 == GSS_C_NO_OID);
-    else if (o2 == GSS_C_NO_OID)
-        return (o1 == GSS_C_NO_OID);
-    else
-        return (o1->length == o2->length &&
-                memcmp(o1->elements, o2->elements, o1->length) == 0);
-}
+extern int
+oidEqual(const gss_OID_desc *o1, const gss_OID_desc *o2);
 
 /* util_ordering.c */
 OM_uint32
index 096c9f8..7a24f5a 100644 (file)
@@ -204,3 +204,15 @@ duplicateOidSet(OM_uint32 *minor,
 
     return major;
 }
+
+int
+oidEqual(const gss_OID_desc *o1, const gss_OID_desc *o2)
+{
+    if (o1 == GSS_C_NO_OID)
+        return (o2 == GSS_C_NO_OID);
+    else if (o2 == GSS_C_NO_OID)
+        return (o1 == GSS_C_NO_OID);
+    else
+        return (o1->length == o2->length &&
+                memcmp(o1->elements, o2->elements, o1->length) == 0);
+}