From 467d8e1db6501316eeddb549616c62b56353da55 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Wed, 20 Feb 2019 00:24:43 +0200 Subject: [PATCH] Add BearSSL submodule Fix common.nim path to BearSSL submodule. --- .gitmodules | 3 +++ libp2p/crypto/BearSSL | 1 + libp2p/crypto/common.nim | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 libp2p/crypto/BearSSL diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..45f96cbd9 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libp2p/crypto/BearSSL"] + path = libp2p/crypto/BearSSL + url = https://www.bearssl.org/git/BearSSL diff --git a/libp2p/crypto/BearSSL b/libp2p/crypto/BearSSL new file mode 160000 index 000000000..c1bb5356b --- /dev/null +++ b/libp2p/crypto/BearSSL @@ -0,0 +1 @@ +Subproject commit c1bb5356bb52984178c269886b6835b532ef30c2 diff --git a/libp2p/crypto/common.nim b/libp2p/crypto/common.nim index ffa8d4d09..145212223 100644 --- a/libp2p/crypto/common.nim +++ b/libp2p/crypto/common.nim @@ -1,5 +1,4 @@ import strutils -import hexdump from os import DirSep when defined(vcc): @@ -7,7 +6,7 @@ when defined(vcc): const bearPath = currentSourcePath.rsplit(DirSep, 1)[0] & DirSep & - ".." & DirSep & "BearSSL" & DirSep + "BearSSL" & DirSep bearSrcPath = bearPath & "src" bearIncPath = bearPath & "inc" bearIntPath = bearSrcPath & DirSep & "int" & DirSep