summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-04-08consistent test-start loggingRich Salz
Output a consistent "start" marker for each test. Remove "2>/dev/null" from Makefile command lines. Add OPENSSL_CONFIG=/dev/null for places where it's needed, in order to suppress a warning message from the openssl CLI. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-08Ignore the non-dll windows specific build directoriesRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-04Appease clang -WshadowRichard Levitte
The macros BSWAP4 and BSWAP8 have statetemnt expressions implementations that use local variable names that shadow variables outside the macro call, generating warnings like this e_aes_cbc_hmac_sha1.c:263:14: warning: declaration shadows a local variable [-Wshadow] seqnum = BSWAP8(blocks[0].q[0]); ^ ../modes/modes_lcl.h:41:29: note: expanded from macro 'BSWAP8' ^ e_aes_cbc_hmac_sha1.c:223:12: note: previous declaration is here size_t ret = 0; ^ Have clang be quiet by modifying the macro variable names slightly (suffixing them with an underscore). Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-04Appease clang -Wgnu-statement-expressionRichard Levitte
We use GNU statement expressions in crypto/md32_common.h, surrounded by checks that GNU C is indeed used to compile. It seems that clang, at least on Linux, pretends to be GNU C, therefore finds the statement expressions and then warns about them. The solution is to have clang be quiet about it. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-04Appease clang -Wempty-translation-unitRichard Levitte
ebcdic.c:284:7: warning: ISO C requires a translation unit to contain at least one declaration [-Wempty-translation-unit] ^ 1 warning generated. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-03update ordinalsDr. Stephen Henson
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-03make dependDr. Stephen Henson
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-03remove asn1_mac.hDr. Stephen Henson
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-03Remove old ASN.1 functions.Dr. Stephen Henson
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-03Remove unnecessary use of ASN1_const_CTXDr. Stephen Henson
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-03Rewrite ssl_asn1.c using new ASN.1 code.Dr. Stephen Henson
Complete reimplementation of d2i_SSL_SESSION and i2d_SSL_SESSION using new ASN.1 code and eliminating use of old ASN.1 macros. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-03Add macro to implement static encode functions.Dr. Stephen Henson
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-02Fewer newlines in comp method outputRich Salz
Print "supported compression methods" all on one line. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-04-02modes/asm/ghashv8-armx.pl: up to 90% performance improvement.Andy Polyakov
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-04-02sha/asm/sha*-armv8.pl: add Denver and X-Gene esults.Andy Polyakov
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-02aes/asm/aesv8-armx.pl: optimize for Cortex-A5x.Andy Polyakov
ARM has optimized Cortex-A5x pipeline to favour pairs of complementary AES instructions. While modified code improves performance of post-r0p0 Cortex-A53 performance by >40% (for CBC decrypt and CTR), it hurts original r0p0. We favour later revisions, because one can't prevent future from coming. Improvement on post-r0p0 Cortex-A57 exceeds 50%, while new code is not slower on r0p0, or Apple A7 for that matter. [Update even SHA results for latest Cortex-A53.] Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-02perlasm/arm-xlate.pl update (fix end-less loop and prepare for 32-bit iOS).Andy Polyakov
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-02Configure: android-arm facelift.Andy Polyakov
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-01make updateEmilia Kasper
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-31Remove SSL_TASK, the DECnet Based SSL Engine - addendumRichard Levitte
A bit of cleanup was forgotten. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-03-31Remove SSL_TASK, the DECnet Based SSL EngineRichard Levitte
This engine is for VMS only, and isn't really part of the core OpenSSL but rather a side project of its own that just happens to have tagged along for a long time. The reasons why it has remained within the OpenSSL source are long lost in history, and there not being any real reason for it to remain here, it's time for it to move out. This side project will appear as a project in its own right, the location of which will be announced later on. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-03-31Remove old ASN.1 code from evp_asn1.cDr. Stephen Henson
Rewrite ASN1_TYPE_set_int_octetstring and ASN1_TYPE_get_int_octetstring to use the new ASN.1 code instead of the old macros. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-31Now that we've removed the need for symlinks, we can safely remove ↵Richard Levitte
util/mklinks.pl Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-31Remove remaining variables for symlinked/copied headers and testsRichard Levitte
GitConfigure: no more 'no-symlinks' util/bat.sh, util/mk1mf.pl, util/pl/VC-32.pl, util/pl/unix.pl: - Remove all uses of EXHEADER. That includes removing the use if INC_D and INCO_D. - Replace the check for TEST with a check for [A-Z0-9_]*TEST. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-31Remove EXHEADER, TEST, APPS, links:, install: and uninstall: where relevantRichard Levitte
With no more symlinks, there's no need for those variables, or the links target. This also goes for all install: and uninstall: targets that do nothing but copy $(EXHEADER) files, since that's now taken care of by the top Makefile. Also, removed METHTEST from test/Makefile. It looks like an old test that's forgotten... Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-31Stop symlinking, move files to intended directoryRichard Levitte
Rather than making include/openssl/foo.h a symlink to crypto/foo/foo.h, this change moves the file to include/openssl/foo.h once and for all. Likewise, move crypto/foo/footest.c to test/footest.c, instead of symlinking it there. Originally-by: Geoff Thorpe <geoff@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-31Ensure EC private keys retain leading zerosDouglas E Engert
RFC5915 requires the use of the I2OSP primitive as defined in RFC3447 for storing an EC Private Key. This converts the private key into an OCTETSTRING and retains any leading zeros. This commit ensures that those leading zeros are present if required. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-03-31Clean up record layerMatt Caswell
Fix up various things that were missed during the record layer work. All instances where we are breaking the encapsulation rules. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-31Fix record layer "make clean"Matt Caswell
The "clean" target in libssl has been updated to handle the new record layer sub-directory. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-31Fix some faults in util/mk1mf.plRichard Levitte
When building on Unix, there are times when the 'EX_LIB' MINFO variable contains valuable information. Make sure to take care of it. fixrules in util/pl/unix.pl was previously changed with a simpler fix of rules, with a comment claiming that's compatible with -j. Unfortunately, this breaks multiline rules and doesn't change anything for single line rules. While at it, do not prefix pure echo lines with a 'cd $(TEST_D) &&', as that's rather silly. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-03-30Remove duplicate code.Dr. Stephen Henson
Update code to use ASN1_TYPE_pack_sequence and ASN1_TYPE_unpack_sequence instead of performing the same operation manually. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-30New ASN1_TYPE SEQUENCE functions.Dr. Stephen Henson
Add new functions ASN1_TYPE_pack_sequence and ASN1_TYPE_unpack_sequence: these encode and decode ASN.1 SEQUENCE using an ASN1_TYPE structure. Update ordinals. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-30Rewrite X509_PKEY_new to avoid old ASN1. macros.Dr. Stephen Henson
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-30Remove unnecessary asn1_mac.h includes.Dr. Stephen Henson
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-30Initialised 'ok' and redo the logic.Richard Levitte
The logic with how 'ok' was calculated didn't quite convey what's "ok", so the logic is slightly redone to make it less confusing. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-03-29sha/asm/sha512-armv4.pl: adapt for use in Linux kernel context.Andy Polyakov
Follow-up to sha256-armv4.pl in cooperation with Ard Biesheuvel (Linaro) and Sami Tolvanen (Google). Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-29sha/asm/sha256-armv4.pl: fix compile issue in kernelAndy Polyakov
and eliminate little-endian dependency. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-29Have a shared library version thats reasonable with our version schemeRichard Levitte
The FAQ says this: After the release of OpenSSL 1.0.0 the versioning scheme changed. Letter releases (e.g. 1.0.1a) can only contain bug and security fixes and no new features. Minor releases change the last number (e.g. 1.0.2) and can contain new features that retain binary compatibility. Changes to the middle number are considered major releases and neither source nor binary compatibility is guaranteed. With such a scheme (and with the thinking that it's nice if the shared library version stays on track with the OpenSSL version), it's rather futile to keep the minor release number in the shared library version. The deed already done with OpenSSL 1.0.x can't be changed, but with 1.x.y, x=1 and on, 1.x as shared library version is sufficient. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-03-29Add private/public key conversion testsDr. Stephen Henson
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-28Remove d2i_X509_PKEY and i2d_X509_PKEYDr. Stephen Henson
Remove partially implemented d2i_X509_PKEY and i2d_X509_PKEY: nothing uses them and they don't work properly. Update ordinals. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-03-28ec/asm/ecp_nistz256-x86_64.pl: update commentary with before-after ↵Andy Polyakov
performance data. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-28free NULL cleanupRich Salz
EVP_.*free; this gets: EVP_CIPHER_CTX_free EVP_PKEY_CTX_free EVP_PKEY_asn1_free EVP_PKEY_asn1_set_free EVP_PKEY_free EVP_PKEY_free_it EVP_PKEY_meth_free; and also EVP_CIPHER_CTX_cleanup Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-03-28Engage vpaes-armv8 module.Andy Polyakov
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-28Add vpaes-amrv8.pl module.Andy Polyakov
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-28Configure: remove unused variables.Andy Polyakov
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-28Make asn1_ex_i2c, asn1_ex_c2i static.Dr. Stephen Henson
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-03-26Remove combine option from ASN.1 code.Dr. Stephen Henson
Remove the combine option. This was used for compatibility with some non standard behaviour in ancient versions of OpenSSL: specifically the X509_ATTRIBUTE and DSAPublicKey handling. Since these have now been revised it is no longer needed. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Simplify DSA public key handling.Dr. Stephen Henson
DSA public keys could exist in two forms: a single Integer type or a SEQUENCE containing the parameters and public key with a field called "write_params" deciding which form to use. These forms are non standard and were only used by functions containing "DSAPublicKey" in the name. Simplify code to only use the parameter form and encode the public key component directly in the DSA public key method. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26ASN1_TYPE documentation.Dr. Stephen Henson
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Add Record Layer documentationMatt Caswell
Add some design documentation on how the record layer works to aid future maintenance. Reviewed-by: Richard Levitte <levitte@openssl.org>