GithubHelp home page GithubHelp logo

xiwen5566 / xw_openssl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openssl/openssl

0.0 3.0 0.0 636.64 MB

TLS/SSL and crypto library

Home Page: https://www.openssl.org

License: Other

Shell 0.41% Perl 27.71% DIGITAL Command Language 0.02% C 66.26% C++ 1.90% Assembly 1.68% M4 0.25% eC 0.02% Objective-C 1.73% Makefile 0.01% Module Management System 0.01% Python 0.01%

xw_openssl's Introduction

My openssl library for leanring.

The xcode index setup.

  • Make project xw_openssl
  • Set the xcode project "C Hearder Search Path" and "C Lib Search Path", absolute path to this project's include folder the for the crypto include folder.

Installatio on Mac and setup for personal project

brew install --force openssl
Warning: openssl: this formula has no --force option so it will be ignored!
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2k.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2k.sierra.bottle.tar.gz
==> Using the sandbox
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig

==> Summary
๐Ÿบ  /usr/local/Cellar/openssl/1.0.2k: 1,696 files, 12M

Secure programming with the OpenSSL API

.
โ””โ”€โ”€ intro-openssl
    โ”œโ”€โ”€ README
    โ”œโ”€โ”€ TrustStore.pem
    โ”œโ”€โ”€ nossl.c
    โ””โ”€โ”€ withssl.c

This is the right command to include the lib.

 โœ˜ guanghe@GUANGHE-M-H03T ๎‚ฐ ~/Documents/STUDY/Projects_personal/xw_openssl/xw_test/intro-openssl ๎‚ฐ ๎‚  master โ—โœš ๎‚ฐ gcc -g -O2 -Wall -Wextra -I/usr/local/opt/openssl/include -rdynamic -L/usr/local/opt/openssl/lib -lcrypto nossl.c -o nossl                              
Undefined symbols for architecture x86_64:
  "_SSL_load_error_strings", referenced from:
      _main in nossl-668935.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

gcc -Wall -Wextra -Werror -o nossl -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib -lssl -lcrypto nossl.c

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.