mirror of https://github.com/wolfSSL/wolfssl.git
pull/150/head
commit
6b3c8e8b79
8
INSTALL
8
INSTALL
|
@ -1,7 +1,7 @@
|
||||||
0. Building on *nix from git repository
|
0. Building on *nix from git repository
|
||||||
|
|
||||||
Run the autogen script to generate configure, you'll need the autoconf tools
|
Run the autogen script to generate configure, then proceed to step 1.
|
||||||
installed, then proceed to step 1.
|
Prerequisites: You'll need autoconf, automake and libtool installed.
|
||||||
|
|
||||||
$ ./autogen.sh
|
$ ./autogen.sh
|
||||||
|
|
||||||
|
@ -43,3 +43,7 @@
|
||||||
Please see section 2.4 in the manual:
|
Please see section 2.4 in the manual:
|
||||||
http://www.wolfssl.com/yaSSL/Docs-cyassl-manual-2-building-cyassl.html
|
http://www.wolfssl.com/yaSSL/Docs-cyassl-manual-2-building-cyassl.html
|
||||||
|
|
||||||
|
9. Building with Rowley CrossWorks for ARM
|
||||||
|
|
||||||
|
Use the CrossWorks project in IDE/ROWLEY-CROSSWORKS-ARM/wolfssl.hzp
|
||||||
|
There is a README.md in IDE/ROWLEY-CROSSWORKS-ARM with more information
|
||||||
|
|
6
README
6
README
|
@ -999,7 +999,7 @@ aren't fully implemented at this time but will be for the next release.
|
||||||
|
|
||||||
For general build instructions see rc1 below.
|
For general build instructions see rc1 below.
|
||||||
|
|
||||||
*****************CyaSSL Release Candidiate 3 rc3-1.0.0 (2/25/2009)
|
*****************CyaSSL Release Candidate 3 rc3-1.0.0 (2/25/2009)
|
||||||
|
|
||||||
|
|
||||||
Release Candidate 3 for CyaSSL 1.0.0 adds bug fixes and adds a project file for
|
Release Candidate 3 for CyaSSL 1.0.0 adds bug fixes and adds a project file for
|
||||||
|
@ -1010,7 +1010,7 @@ lost when cyassl i/o was re-implemented but is now fixed.
|
||||||
|
|
||||||
For general build instructions see rc1 below.
|
For general build instructions see rc1 below.
|
||||||
|
|
||||||
*****************CyaSSL Release Candidiate 2 rc2-1.0.0 (1/21/2009)
|
*****************CyaSSL Release Candidate 2 rc2-1.0.0 (1/21/2009)
|
||||||
|
|
||||||
|
|
||||||
Release Candidate 2 for CyaSSL 1.0.0 adds bug fixes and adds two new stream
|
Release Candidate 2 for CyaSSL 1.0.0 adds bug fixes and adds two new stream
|
||||||
|
@ -1039,7 +1039,7 @@ LDFLAGS="-g -mrvl -mcpu=750 -meabi -mhard-float -Wl,-Map,$(notdir $@).map"
|
||||||
For general build instructions see rc1 below.
|
For general build instructions see rc1 below.
|
||||||
|
|
||||||
|
|
||||||
********************CyaSSL Release Candidiate 1 rc1-1.0.0 (12/17/2008)
|
********************CyaSSL Release Candidate 1 rc1-1.0.0 (12/17/2008)
|
||||||
|
|
||||||
|
|
||||||
Release Candidate 1 for CyaSSL 1.0.0 contains major internal changes. Several
|
Release Candidate 1 for CyaSSL 1.0.0 contains major internal changes. Several
|
||||||
|
|
|
@ -1031,7 +1031,7 @@ aren't fully implemented at this time but will be for the next release.
|
||||||
|
|
||||||
For general build instructions see rc1 below.
|
For general build instructions see rc1 below.
|
||||||
|
|
||||||
## CyaSSL Release Candidiate 3 rc3-1.0.0 (2/25/2009)
|
## CyaSSL Release Candidate 3 rc3-1.0.0 (2/25/2009)
|
||||||
|
|
||||||
|
|
||||||
Release Candidate 3 for CyaSSL 1.0.0 adds bug fixes and adds a project file for
|
Release Candidate 3 for CyaSSL 1.0.0 adds bug fixes and adds a project file for
|
||||||
|
@ -1042,7 +1042,7 @@ lost when cyassl i/o was re-implemented but is now fixed.
|
||||||
|
|
||||||
For general build instructions see rc1 below.
|
For general build instructions see rc1 below.
|
||||||
|
|
||||||
## CyaSSL Release Candidiate 2 rc2-1.0.0 (1/21/2009)
|
## CyaSSL Release Candidate 2 rc2-1.0.0 (1/21/2009)
|
||||||
|
|
||||||
|
|
||||||
Release Candidate 2 for CyaSSL 1.0.0 adds bug fixes and adds two new stream
|
Release Candidate 2 for CyaSSL 1.0.0 adds bug fixes and adds two new stream
|
||||||
|
@ -1077,7 +1077,7 @@ For linking purposes you'll need
|
||||||
For general build instructions see rc1 below.
|
For general build instructions see rc1 below.
|
||||||
|
|
||||||
|
|
||||||
## CyaSSL Release Candidiate 1 rc1-1.0.0 (12/17/2008)
|
## CyaSSL Release Candidate 1 rc1-1.0.0 (12/17/2008)
|
||||||
|
|
||||||
|
|
||||||
Release Candidate 1 for CyaSSL 1.0.0 contains major internal changes. Several
|
Release Candidate 1 for CyaSSL 1.0.0 contains major internal changes. Several
|
||||||
|
|
|
@ -19,3 +19,28 @@ AbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhHhm4qxFYxldBniYUr+WymXUad
|
||||||
DKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveCX4XSQRjbgbME
|
DKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveCX4XSQRjbgbME
|
||||||
HMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A==
|
HMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A==
|
||||||
-----END CERTIFICATE-----
|
-----END CERTIFICATE-----
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEU
|
||||||
|
MBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFs
|
||||||
|
IFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290
|
||||||
|
MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEwNDgzOFowbzELMAkGA1UEBhMCU0Ux
|
||||||
|
FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5h
|
||||||
|
bCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9v
|
||||||
|
dDCCASIwDQYJKoZIhvcNAQEBBQADgg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Bi0cQ+azcgOno4uG+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5a
|
||||||
|
mnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
/* dsa.h for openSSL */
|
/* dsa.h for openSSL */
|
||||||
|
|
||||||
|
#ifndef CYASSL_OPENSSL_DSA
|
||||||
|
#define CYASSL_OPENSSL_DSA
|
||||||
|
|
||||||
|
#define CyaSSL_DSA_LoadDer wolfSSL_DSA_LoadDer
|
||||||
|
#define CyaSSL_DSA_do_sign wolfSSL_DSA_do_sign
|
||||||
|
|
||||||
|
#include <cyassl/openssl/ssl.h>
|
||||||
#include <wolfssl/openssl/dsa.h>
|
#include <wolfssl/openssl/dsa.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -24,4 +24,17 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef CYASSL_OPENSSL_EVP
|
||||||
|
#define CYASSL_OPENSSL_EVP
|
||||||
|
|
||||||
|
#define CyaSSL_StoreExternalIV wolfSSL_StoreExternalIV
|
||||||
|
#define CyaSSL_SetInternalIV wolfSSL_SetInternalIV
|
||||||
|
#define CYASSL_EVP_MD WOLFSSL_EVP_MD
|
||||||
|
#define CyaSSL_EVP_X_STATE wolfSSL_EVP_X_STATE
|
||||||
|
#define CyaSSL_EVP_X_STATE_LEN wolfSSL_EVP_X_STATE_LEN
|
||||||
|
#define CyaSSL_3des_iv wolfSSL_3des_iv
|
||||||
|
#define CyaSSL_aes_ctr_iv wolfSSL_aes_ctr_iv
|
||||||
|
|
||||||
#include <wolfssl/openssl/evp.h>
|
#include <wolfssl/openssl/evp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
/* rsa.h for openSSL */
|
/* rsa.h for openSSL */
|
||||||
|
|
||||||
|
#ifndef CYASSL_OPENSSL_RSA
|
||||||
|
#define CYASSL_OPENSSL_RSA
|
||||||
|
|
||||||
|
#define CyaSSL_RSA_GenAdd wolfSSL_RSA_GenAdd
|
||||||
|
#define CyaSSL_RSA_LoadDer wolfSSL_RSA_LoadDer
|
||||||
|
|
||||||
|
#include <cyassl/openssl/ssl.h>
|
||||||
#include <wolfssl/openssl/rsa.h>
|
#include <wolfssl/openssl/rsa.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/* ssl.h defines openssl compatibility layer
|
/* ssl.h defines openssl compatibility layer
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
#ifndef CYASSL_OPENSSL_H_
|
||||||
|
#define CYASSL_OPENSSL_H_
|
||||||
|
|
||||||
|
#include <cyassl/ssl.h>
|
||||||
#include <wolfssl/openssl/ssl.h>
|
#include <wolfssl/openssl/ssl.h>
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,14 @@ ca=./certs/wolfssl-website-ca.pem
|
||||||
|
|
||||||
[ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1
|
[ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1
|
||||||
|
|
||||||
|
# cloudflare seems to change CAs quickly, disabled by default
|
||||||
|
if test -n "$WOLFSSL_EXTERNAL_TEST"; then
|
||||||
|
echo "WOLFSSL_EXTERNAL_TEST set, running test..."
|
||||||
|
else
|
||||||
|
echo "WOLFSSL_EXTERNAL_TEST NOT set, won't run"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# is our desired server there?
|
# is our desired server there?
|
||||||
ping -c 2 $server
|
ping -c 2 $server
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
|
|
|
@ -1973,7 +1973,7 @@ static int Decrypt(SSL* ssl, byte* output, const byte* input, word32 sz)
|
||||||
|
|
||||||
#ifdef HAVE_AESGCM
|
#ifdef HAVE_AESGCM
|
||||||
case wolfssl_aes_gcm:
|
case wolfssl_aes_gcm:
|
||||||
if (sz >= AEAD_EXP_IV_SZ + ssl->specs.aead_mac_size)
|
if (sz >= (word32)(AEAD_EXP_IV_SZ + ssl->specs.aead_mac_size))
|
||||||
{
|
{
|
||||||
byte nonce[AEAD_NONCE_SZ];
|
byte nonce[AEAD_NONCE_SZ];
|
||||||
XMEMCPY(nonce, ssl->keys.aead_dec_imp_IV, AEAD_IMP_IV_SZ);
|
XMEMCPY(nonce, ssl->keys.aead_dec_imp_IV, AEAD_IMP_IV_SZ);
|
||||||
|
@ -1986,12 +1986,15 @@ static int Decrypt(SSL* ssl, byte* output, const byte* input, word32 sz)
|
||||||
nonce, AEAD_NONCE_SZ,
|
nonce, AEAD_NONCE_SZ,
|
||||||
NULL, 0,
|
NULL, 0,
|
||||||
NULL, 0) < 0) {
|
NULL, 0) < 0) {
|
||||||
|
Trace(BAD_DECRYPT);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
ForceZero(nonce, AEAD_NONCE_SZ);
|
ForceZero(nonce, AEAD_NONCE_SZ);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
Trace(BAD_DECRYPT_SIZE);
|
Trace(BAD_DECRYPT_SIZE);
|
||||||
|
ret = -1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue