Skip to content

meritz-burns/erltls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libtls bindings for Erlang

These are our notes as we go along:

Debian installation

apt-get install build-essential erlang-dev

Install libressl-portable. To install it into /opt, understand and do this:

curl -LO http://...libressl-portable.tar.gz
tar -zxf libressl-portable*tar.gz
cd libressl
./configure --prefix=/opt
make check
sudo make install
sudo sh -c 'echo /opt/libressl/lib > /etc/ld.so.conf.d/libressl'
sudo ldconfig
echo export PKG_CONFIG_PATH=/opt/libressl/lib/pkgconfig > ~/.profile

OpenBSD installation

pkg_add erlang

Build from repo

First time:

./autogen.sh && ./configure

After changing code:

./rebar3 compile

Cleaning

./rebar3 clean

Testing

./rebar3 eunit

When things go crazy

See rebar.config: as part of cleaning the Erlang, it also runs make clean; as part of compiling the Erlang, it also runs make.

If you just want to try to get things working again without much thought, try this:

make distclean ; ./autogen.sh && ./configure
./rebar3 clean
./rebar3 compile

Try it from erl

./rebar3 shell

External documentation

C style guide

OpenBSD KNF. See style(9) for details, or find it online. This is a way of thinking: explictness in an effort to understand what the software does, but not too much explictness so that the idea is not muddled by the syntax. Use these vim settings for the indentation format:

set sw=0
set ts=8
set noet
set cinoptions=:0,t0,+4,(4

Authors

Donate to the OpenBSD Foundation.

Released under the ISC license.

About

A foreign function interface to OpenBSD libtls for Erlang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •