Remove unneeded polarssl files.
This commit is contained in:
parent
17918472ae
commit
4ac0fb0a3e
|
@ -1,3 +0,0 @@
|
||||||
Site: localhost
|
|
||||||
BuildName: PolarSSL-test
|
|
||||||
CoverageCommand: /usr/bin/gcov
|
|
|
@ -1,63 +0,0 @@
|
||||||
|
|
||||||
DESTDIR=/usr/local
|
|
||||||
PREFIX=polarssl_
|
|
||||||
|
|
||||||
.SILENT:
|
|
||||||
|
|
||||||
all:
|
|
||||||
cd library && $(MAKE) all && cd ..
|
|
||||||
cd programs && $(MAKE) all && cd ..
|
|
||||||
cd tests && $(MAKE) all && cd ..
|
|
||||||
|
|
||||||
no_test:
|
|
||||||
cd library && $(MAKE) all && cd ..
|
|
||||||
cd programs && $(MAKE) all && cd ..
|
|
||||||
|
|
||||||
lib:
|
|
||||||
cd library && $(MAKE) all && cd ..
|
|
||||||
|
|
||||||
install:
|
|
||||||
mkdir -p $(DESTDIR)/include/polarssl
|
|
||||||
cp -r include/polarssl $(DESTDIR)/include
|
|
||||||
|
|
||||||
mkdir -p $(DESTDIR)/lib
|
|
||||||
cp library/libpolarssl.* $(DESTDIR)/lib
|
|
||||||
|
|
||||||
mkdir -p $(DESTDIR)/bin
|
|
||||||
for p in programs/*/* ; do \
|
|
||||||
if [ -x $$p ] && [ ! -d $$p ] ; \
|
|
||||||
then \
|
|
||||||
f=$(PREFIX)`basename $$p` ; \
|
|
||||||
cp $$p $(DESTDIR)/bin/$$f ; \
|
|
||||||
fi \
|
|
||||||
done
|
|
||||||
|
|
||||||
uninstall:
|
|
||||||
rm -rf $(DESTDIR)/include/polarssl
|
|
||||||
rm -f $(DESTDIR)/lib/libpolarssl.*
|
|
||||||
|
|
||||||
for p in programs/*/* ; do \
|
|
||||||
if [ -x $$p ] && [ ! -d $$p ] ; \
|
|
||||||
then \
|
|
||||||
f=$(PREFIX)`basename $$p` ; \
|
|
||||||
rm -f $(DESTDIR)/bin/$$f ; \
|
|
||||||
fi \
|
|
||||||
done
|
|
||||||
|
|
||||||
clean:
|
|
||||||
cd library && $(MAKE) clean && cd ..
|
|
||||||
cd programs && $(MAKE) clean && cd ..
|
|
||||||
cd tests && $(MAKE) clean && cd ..
|
|
||||||
|
|
||||||
check:
|
|
||||||
( cd tests && $(MAKE) check )
|
|
||||||
|
|
||||||
apidoc:
|
|
||||||
mkdir -p apidoc
|
|
||||||
doxygen doxygen/polarssl.doxyfile
|
|
||||||
|
|
||||||
apidoc_clean:
|
|
||||||
if [ -d apidoc ] ; \
|
|
||||||
then \
|
|
||||||
rm -rf apidoc ; \
|
|
||||||
fi
|
|
|
@ -1,37 +0,0 @@
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* Encryption/decryption module documentation file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @addtogroup encdec_module Encryption/decryption module
|
|
||||||
*
|
|
||||||
* The Encryption/decryption module provides encryption/decryption functions.
|
|
||||||
* One can differtiate between symmetric and asymetric algorithms; the
|
|
||||||
* symmetric ones are mostly used for message confidentiality and the asymmetric
|
|
||||||
* ones for key exchange and message integrity.
|
|
||||||
* Some symmetric algorithms provide different block cipher modes, mainly
|
|
||||||
* Electronic Code Book (ECB) which is used for short (64-bit) messages and
|
|
||||||
* Cipher Block Chaining (CBC) which provides the structure needed for longer
|
|
||||||
* messages. In addition the Cipher Feedback Mode (CFB-128) stream cipher mode
|
|
||||||
* is implemented for specific algorithms.
|
|
||||||
*
|
|
||||||
* Sometimes the same functions are used for encryption and decryption.
|
|
||||||
* The following algorithms are provided:
|
|
||||||
* - Symmetric:
|
|
||||||
* - AES (see \c aes_crypt_ecb(), \c aes_crypt_cbc() and \c aes_crypt_cfb128()).
|
|
||||||
* - ARCFOUR (see \c arc4_crypt()).
|
|
||||||
* - Camellia (see \c camellia_crypt_ecb(), \c camellia_crypt_cbc() and \c camellia_crypt_cfb128()).
|
|
||||||
* - DES/3DES (see \c des_crypt_ecb(), \c des_crypt_cbc(), \c des3_crypt_ecb()
|
|
||||||
* and \c des3_crypt_cbc()).
|
|
||||||
* - XTEA (see \c xtea_crypt_ecb()).
|
|
||||||
* - Asymmetric:
|
|
||||||
* - Diffie-Hellman-Merkle (see \c dhm_read_public(), \c dhm_make_public()
|
|
||||||
* and \c dhm_calc_secret()).
|
|
||||||
* - RSA (see \c rsa_public() and \c rsa_private()).
|
|
||||||
*
|
|
||||||
* This module provides encryption/decryption which can be used to provide
|
|
||||||
* secrecy.
|
|
||||||
* It also provides asymmetric key functions which can be used for
|
|
||||||
* confidentiality, integrity, authentication and non-repudiation.
|
|
||||||
*/
|
|
|
@ -1,20 +0,0 @@
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* Hashing module documentation file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @addtogroup hashing_module Hashing module
|
|
||||||
*
|
|
||||||
* The Hashing module provides one-way hashing functions. Such functions can be
|
|
||||||
* used for creating a hash message authentication code (HMAC) when sending a
|
|
||||||
* message. Such a HMAC can be used in combination with a private key
|
|
||||||
* for authentication, which is a message integrity control.
|
|
||||||
* The following hashing-algorithms are provided:
|
|
||||||
* - MD2, MD4, MD5 128-bit one-way hash functions by Ron Rivest (see
|
|
||||||
* \c md2_hmac(), \c md4_hmac() and \c md5_hmac()).
|
|
||||||
* - SHA-1, SHA-256, SHA-384/512 160-bit or more one-way hash functions by
|
|
||||||
* NIST and NSA (see\c sha1_hmac(), \c sha2_hmac() and \c sha4_hmac()).
|
|
||||||
*
|
|
||||||
* This module provides one-way hashing which can be used for authentication.
|
|
||||||
*/
|
|
|
@ -1,80 +0,0 @@
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* Main page documentation file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @mainpage PolarSSL v1.2.8 source code documentation
|
|
||||||
*
|
|
||||||
* This documentation describes the internal structure of PolarSSL. It was
|
|
||||||
* automatically generated from specially formatted comment blocks in
|
|
||||||
* PolarSSL's source code using Doxygen. (See
|
|
||||||
* http://www.stack.nl/~dimitri/doxygen/ for more information on Doxygen)
|
|
||||||
*
|
|
||||||
* PolarSSL has a simple setup: it provides the ingredients for an SSL/TLS
|
|
||||||
* implementation. These ingredients are listed as modules in the
|
|
||||||
* \ref mainpage_modules "Modules section". This "Modules section" introduces
|
|
||||||
* the high-level module concepts used throughout this documentation.\n
|
|
||||||
* Some examples of PolarSSL usage can be found in the \ref mainpage_examples
|
|
||||||
* "Examples section".
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* @section mainpage_modules Modules
|
|
||||||
*
|
|
||||||
* PolarSSL supports SSLv3 up to TLSv1.2 communication by providing the
|
|
||||||
* following:
|
|
||||||
* - TCP/IP communication functions: listen, connect, accept, read/write.
|
|
||||||
* - SSL/TLS communication functions: init, handshake, read/write.
|
|
||||||
* - X.509 functions: CRT, CRL and key handling
|
|
||||||
* - Random number generation
|
|
||||||
* - Hashing
|
|
||||||
* - Encryption/decryption
|
|
||||||
*
|
|
||||||
* Above functions are split up neatly into logical interfaces. These can be
|
|
||||||
* used separately to provide any of the above functions or to mix-and-match
|
|
||||||
* into an SSL server/client solution that utilises a X.509 PKI. Examples of
|
|
||||||
* such implementations are amply provided with the source code. Note that
|
|
||||||
* there is also an OpenSSL wrapper provided.\n
|
|
||||||
* Note that PolarSSL does not provide a control channel or (multiple) session
|
|
||||||
* handling.
|
|
||||||
*
|
|
||||||
* @section mainpage_examples Examples
|
|
||||||
*
|
|
||||||
* Example server setup:
|
|
||||||
*
|
|
||||||
* \b Prerequisites:
|
|
||||||
* - X.509 certificate and private key
|
|
||||||
* - session handling functions
|
|
||||||
*
|
|
||||||
* \b Setup:
|
|
||||||
* - Load your certificate and your private RSA key (X.509 interface)
|
|
||||||
* - Setup the listening TCP socket (TCP/IP interface)
|
|
||||||
* - Accept incoming client connection (TCP/IP interface)
|
|
||||||
* - Initialise as an SSL-server (SSL/TLS interface)
|
|
||||||
* - Set parameters, e.g. authentication, ciphers, CA-chain, key exchange
|
|
||||||
* - Set callback functions RNG, IO, session handling
|
|
||||||
* - Perform an SSL-handshake (SSL/TLS interface)
|
|
||||||
* - Read/write data (SSL/TLS interface)
|
|
||||||
* - Close and cleanup (all interfaces)
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* Example client setup:
|
|
||||||
*
|
|
||||||
* \b Prerequisites:
|
|
||||||
* - X.509 certificate and private key
|
|
||||||
* - X.509 trusted CA certificates
|
|
||||||
*
|
|
||||||
* \b Setup:
|
|
||||||
* - Load the trusted CA certificates (X.509 interface)
|
|
||||||
* - Load your certificate and your private RSA key (X.509 interface)
|
|
||||||
* - Setup a TCP/IP connection (TCP/IP interface)
|
|
||||||
* - Initialise as an SSL-client (SSL/TLS interface)
|
|
||||||
* - Set parameters, e.g. authentication mode, ciphers, CA-chain, session
|
|
||||||
* - Set callback functions RNG, IO
|
|
||||||
* - Perform an SSL-handshake (SSL/TLS interface)
|
|
||||||
* - Verify the server certificate (SSL/TLS interface)
|
|
||||||
* - Write/read data (SSL/TLS interface)
|
|
||||||
* - Close and cleanup (all interfaces)
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
|
@ -1,25 +0,0 @@
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* Random number generator (RNG) module documentation file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @addtogroup rng_module Random number generator (RNG) module
|
|
||||||
*
|
|
||||||
* The Random number generator (RNG) module provides random number
|
|
||||||
* generation, see \c ctr_dbrg_random() or \c havege_random().
|
|
||||||
*
|
|
||||||
* The former uses the block-cipher counter-mode based deterministic random
|
|
||||||
* bit generator (CTR_DBRG) as specified in NIST SP800-90. It needs an external
|
|
||||||
* source of entropy. For these purposes \c entropy_func() can be used. This is
|
|
||||||
* an implementation based on a simple entropy accumulator design.
|
|
||||||
*
|
|
||||||
* The latter random number generator uses the HAVEGE (HArdware Volatile
|
|
||||||
* Entropy Gathering and Expansion) software heuristic which is claimed
|
|
||||||
* to be an unpredictable or empirically strong* random number generation.
|
|
||||||
*
|
|
||||||
* \* Meaning that there seems to be no practical algorithm that can guess
|
|
||||||
* the next bit with a probability larger than 1/2 in an output sequence.
|
|
||||||
*
|
|
||||||
* This module can be used to generate random numbers.
|
|
||||||
*/
|
|
|
@ -1,32 +0,0 @@
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* SSL/TLS communication module documentation file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @addtogroup ssltls_communication_module SSL/TLS communication module
|
|
||||||
*
|
|
||||||
* The SSL/TLS communication module provides the means to create an SSL/TLS
|
|
||||||
* communication channel.
|
|
||||||
* The basic provisions are:
|
|
||||||
* - initialise an SSL/TLS context (see \c ssl_init()).
|
|
||||||
* - perform an SSL/TLS handshake (see \c ssl_handshake()).
|
|
||||||
* - read/write (see \c ssl_read() and \c ssl_write()).
|
|
||||||
* - notify a peer that conection is being closed (see \c ssl_close_notify()).
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* Many aspects of such a channel are set through parameters and callback
|
|
||||||
* functions:
|
|
||||||
* - the endpoint role: client or server.
|
|
||||||
* - the authentication mode. Should verification take place.
|
|
||||||
* - the Host-to-host communication channel. A TCP/IP module is provided.
|
|
||||||
* - the random number generator (RNG).
|
|
||||||
* - the ciphers to use for encryption/decryption.
|
|
||||||
* - session control functions.
|
|
||||||
* - X.509 parameters for certificate-handling and key exchange.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* This module can be used to create an SSL/TLS server and client and to provide a basic
|
|
||||||
* framework to setup and communicate through an SSL/TLS communication channel.\n
|
|
||||||
* Note that you need to provide for several aspects yourself as mentioned above.
|
|
||||||
*/
|
|
|
@ -1,26 +0,0 @@
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* TCP/IP communication module documentation file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @addtogroup tcpip_communication_module TCP/IP communication module
|
|
||||||
*
|
|
||||||
* The TCP/IP communication module provides for a channel of
|
|
||||||
* communication for the \link ssltls_communication_module SSL/TLS communication
|
|
||||||
* module\endlink to use.
|
|
||||||
* In the TCP/IP-model it provides for communication up to the Transport
|
|
||||||
* (or Host-to-host) layer.
|
|
||||||
* SSL/TLS resides on top of that, in the Application layer, and makes use of
|
|
||||||
* its basic provisions:
|
|
||||||
* - listening on a port (see \c net_bind()).
|
|
||||||
* - accepting a connection (through \c net_accept()).
|
|
||||||
* - read/write (through \c net_recv()/\c net_send()).
|
|
||||||
* - close a connection (through \c net_close()).
|
|
||||||
*
|
|
||||||
* This way you have the means to, for example, implement and use an UDP or
|
|
||||||
* IPSec communication solution as a basis.
|
|
||||||
*
|
|
||||||
* This module can be used at server- and clientside to provide a basic
|
|
||||||
* means of communication over the internet.
|
|
||||||
*/
|
|
|
@ -1,21 +0,0 @@
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* X.509 module documentation file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @addtogroup x509_module X.509 module
|
|
||||||
*
|
|
||||||
* The X.509 module provides X.509 support which includes:
|
|
||||||
* - X.509 certificate (CRT) reading (see \c x509parse_crt() and
|
|
||||||
* \c x509parse_crtfile()).
|
|
||||||
* - X.509 certificate revocation list (CRL) reading (see \c x509parse_crl()
|
|
||||||
* and\c x509parse_crlfile()).
|
|
||||||
* - X.509 (RSA) private key reading (see \c x509parse_key() and
|
|
||||||
* \c x509parse_keyfile()).
|
|
||||||
* - X.509 certificate signature verification (see \c x509parse_verify())
|
|
||||||
*
|
|
||||||
* This module can be used to build a certificate authority (CA) chain and
|
|
||||||
* verify its signature. It is also used to get a (RSA) private key for signing
|
|
||||||
* and decryption.
|
|
||||||
*/
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,94 +0,0 @@
|
||||||
|
|
||||||
# Also see "include/polarssl/config.h"
|
|
||||||
|
|
||||||
# To compile on MinGW: add "-lws2_32" to LDFLAGS or define WINDOWS in your
|
|
||||||
# environment
|
|
||||||
#
|
|
||||||
CFLAGS += -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement
|
|
||||||
OFLAGS = -O2
|
|
||||||
|
|
||||||
ifdef DEBUG
|
|
||||||
CFLAGS += -g3
|
|
||||||
endif
|
|
||||||
|
|
||||||
# MicroBlaze specific options:
|
|
||||||
# CFLAGS += -mno-xl-soft-mul -mxl-barrel-shift
|
|
||||||
|
|
||||||
# To compile on Plan9:
|
|
||||||
# CFLAGS += -D_BSD_EXTENSION
|
|
||||||
|
|
||||||
# To compile as a shared library:
|
|
||||||
ifdef SHARED
|
|
||||||
CFLAGS += -fPIC
|
|
||||||
endif
|
|
||||||
|
|
||||||
SONAME=libpolarssl.so.0
|
|
||||||
|
|
||||||
DLEXT=so
|
|
||||||
# OSX shared library extension:
|
|
||||||
# DLEXT=dylib
|
|
||||||
|
|
||||||
# Windows shared library extension:
|
|
||||||
ifdef WINDOWS
|
|
||||||
DLEXT=dll
|
|
||||||
LDFLAGS += -lws2_32
|
|
||||||
endif
|
|
||||||
|
|
||||||
OBJS= aes.o arc4.o asn1parse.o \
|
|
||||||
asn1write.o base64.o bignum.o \
|
|
||||||
blowfish.o camellia.o \
|
|
||||||
certs.o cipher.o cipher_wrap.o \
|
|
||||||
ctr_drbg.o debug.o des.o \
|
|
||||||
dhm.o entropy.o entropy_poll.o \
|
|
||||||
error.o gcm.o havege.o \
|
|
||||||
md.o md_wrap.o md2.o \
|
|
||||||
md4.o md5.o net.o \
|
|
||||||
padlock.o pbkdf2.o pem.o \
|
|
||||||
pkcs5.o pkcs11.o pkcs12.o \
|
|
||||||
rsa.o sha1.o sha2.o \
|
|
||||||
sha4.o ssl_cache.o ssl_cli.o \
|
|
||||||
ssl_srv.o \
|
|
||||||
ssl_tls.o timing.o version.o \
|
|
||||||
x509parse.o x509write.o xtea.o
|
|
||||||
|
|
||||||
.SILENT:
|
|
||||||
|
|
||||||
ifndef SHARED
|
|
||||||
all: static
|
|
||||||
else
|
|
||||||
all: shared
|
|
||||||
endif
|
|
||||||
|
|
||||||
static: libpolarssl.a
|
|
||||||
|
|
||||||
shared: libpolarssl.$(DLEXT)
|
|
||||||
|
|
||||||
libpolarssl.a: $(OBJS)
|
|
||||||
echo " AR $@"
|
|
||||||
$(AR) r $@ $(OBJS)
|
|
||||||
echo " RL $@"
|
|
||||||
$(AR) s $@
|
|
||||||
|
|
||||||
libpolarssl.so: libpolarssl.a
|
|
||||||
echo " LD $@"
|
|
||||||
$(CC) ${LDFLAGS} -shared -Wl,-soname,$(SONAME) -o $@ $(OBJS)
|
|
||||||
|
|
||||||
libpolarssl.dylib: libpolarssl.a
|
|
||||||
echo " LD $@"
|
|
||||||
$(CC) ${LDFLAGS} -dynamiclib -o $@ $(OBJS)
|
|
||||||
|
|
||||||
libpolarssl.dll: libpolarssl.a
|
|
||||||
echo " LD $@"
|
|
||||||
$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS) -lws2_32 -lwinmm -lgdi32
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
echo " CC $<"
|
|
||||||
$(CC) $(CFLAGS) $(OFLAGS) -c $<
|
|
||||||
|
|
||||||
clean:
|
|
||||||
ifndef WINDOWS
|
|
||||||
rm -f *.o libpolarssl.*
|
|
||||||
endif
|
|
||||||
ifdef WINDOWS
|
|
||||||
del /Q /F *.o libpolarssl.*
|
|
||||||
endif
|
|
Loading…
Reference in New Issue