1*4882a593SmuzhiyunSUMMARY = "BearSSL is an implementation of the SSL/TLS protocol (RFC 5246) written in C" 2*4882a593SmuzhiyunDESCRIPTION = "BearSSL is an implementation of the SSL/TLS protocol (RFC \ 3*4882a593Smuzhiyun5246) written in C. It aims at offering the following features: \ 4*4882a593Smuzhiyun * Be correct and secure. In particular, insecure protocol versions and \ 5*4882a593Smuzhiyun choices of algorithms are not supported, by design; cryptographic \ 6*4882a593Smuzhiyun algorithm implementations are constant-time by default. \ 7*4882a593Smuzhiyun * Be small, both in RAM and code footprint. For instance, a minimal \ 8*4882a593Smuzhiyun server implementation may fit in about 20 kilobytes of compiled code \ 9*4882a593Smuzhiyun and 25 kilobytes of RAM. \ 10*4882a593Smuzhiyun * Be highly portable. BearSSL targets not only “big” operating systems \ 11*4882a593Smuzhiyun like Linux and Windows, but also small embedded systems and even special \ 12*4882a593Smuzhiyun contexts like bootstrap code. \ 13*4882a593Smuzhiyun * Be feature-rich and extensible. SSL/TLS has many defined cipher suites \ 14*4882a593Smuzhiyun and extensions; BearSSL should implement most of them, and allow extra \ 15*4882a593Smuzhiyun algorithm implementations to be added afterwards, possibly from third \ 16*4882a593Smuzhiyun parties." 17*4882a593SmuzhiyunHOMEPAGE = "https://bearssl.org" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunSECTION = "libs" 20*4882a593Smuzhiyun 21*4882a593Smuzhiyuninherit lib_package 22*4882a593Smuzhiyun 23*4882a593SmuzhiyunLICENSE = "MIT" 24*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1fc37e1037ae673975fbcb96a98f7191" 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunPV .= "+git${SRCPV}" 27*4882a593SmuzhiyunSRCREV = "79b1a9996c094ff593ae50bc4edc1f349f39dd6d" 28*4882a593SmuzhiyunSRC_URI = "git://www.bearssl.org/git/BearSSL;protocol=https;branch=master \ 29*4882a593Smuzhiyun file://0001-conf-Unix.mk-remove-fixed-command-definitions.patch \ 30*4882a593Smuzhiyun file://0002-test-test_x509.c-fix-potential-overflow-issue.patch \ 31*4882a593Smuzhiyun file://0001-make-Pass-LDFLAGS-when-building-shared-objects.patch \ 32*4882a593Smuzhiyun " 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun# without compile errors like 35*4882a593Smuzhiyun# <..>/ld: build/obj/ghash_pclmul.o: warning: relocation against `br_ghash_pclmul' in read-only section `.text' 36*4882a593SmuzhiyunCFLAGS += "-fPIC" 37*4882a593Smuzhiyun 38*4882a593SmuzhiyunS = "${WORKDIR}/git" 39*4882a593SmuzhiyunB = "${S}" 40*4882a593Smuzhiyun 41*4882a593Smuzhiyundo_install() { 42*4882a593Smuzhiyun mkdir -p ${D}/${bindir} ${D}/${libdir} 43*4882a593Smuzhiyun install -m 0644 ${B}/build/brssl ${D}/${bindir} 44*4882a593Smuzhiyun install -m 0644 ${B}/build/libbearssl.so ${D}/${libdir}/libbearssl.so.6.0.0 45*4882a593Smuzhiyun ln -s libbearssl.so.6.0.0 ${D}/${libdir}/libbearssl.so.6 46*4882a593Smuzhiyun ln -s libbearssl.so.6.0.0 ${D}/${libdir}/libbearssl.so 47*4882a593Smuzhiyun} 48