wolfssl 시작하기
3222 단어 c
git clone https://github.com/wolfssl/wolfssl
Cloning into 'wolfssl'...
// will take a few minutes
디렉토리를 입력하고 실행합니다
autogen
.$ cd autogen.sh
$ sh autogen.sh
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
glibtoolize: copying file 'build-aux/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:22: installing 'build-aux/compile'
configure.ac:24: installing 'build-aux/config.guess'
configure.ac:24: installing 'build-aux/config.sub'
configure.ac:28: installing 'build-aux/install-sh'
configure.ac:28: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
완료 후 다음을 실행합니다.
$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
....
* IoT-Safe: no
* IoT-Safe HWRNG: no
* NXP SE050: no
* PSA: no
---
$ make check
/Applications/Xcode.app/Contents/Developer/usr/bin/make -j17 check-recursive
make[2]: warning: -jN forced in submake: disabling jobserver mode.
CC wolfcrypt/src/src_libwolfssl_la-hmac.lo
CC wolfcrypt/benchmark/benchmark.o
....
/Applications/Xcode.app/Contents/Developer/usr/bin/make -j17 check-TESTS
make[3]: warning: -jN forced in submake: disabling jobserver mode.
make[4]: warning: -jN forced in submake: disabling jobserver mode.
SKIP: scripts/openssl.test
SKIP: scripts/external.test
PASS: testsuite/testsuite.test
PASS: scripts/resume.test
PASS: scripts/google.test
PASS: scripts/tls13.test
PASS: scripts/unit.test
============================================================================
Testsuite summary for wolfssl 5.5.0
============================================================================
# TOTAL: 7
# PASS: 5
# SKIP: 2
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================
마지막으로 라이브러리를 설치합니다.
sudo make install
Password:
아래와 같이 샘플 샘플을 시험해 볼 수 있습니다.
// In one window
$ ./examples/server/server
// In another
./examples/client/client
Wireshark와 같은 소프트웨어를 사용하면 서버와 클라이언트가 암호화된 데이터를 사용하여 서로 대화하고 있음을 알 수 있습니다.
Reference
이 문제에 관하여(wolfssl 시작하기), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/greenteabiscuit/getting-started-with-wolfssl-5dck텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)