summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2014-08-30Remove some outdated README files, to avoid confusing people.Rich Salz
Reviewed-by: Andy Polyakov <appro@openssl.org>
2014-08-30RT2820: case-insensitive filenames on DarwinRich Salz
Andy pointed out there is also darwin64, so tweak the pattern. Reviewed-by: Andy Polyakov <appro@openssl.org>
2014-08-30RT2119,3407: Updated to dgst.podRich Salz
Re-order algorithm list. Be consistent in command synopsis. Add content about signing. Add EXAMPLE section Add some missing options: -r, -fips-fingerprint -non-fips-allow Various other fixes. Reviewed-by: Andy Polyakov <appro@openssl.org>
2014-08-30RT2379: Additional typo fixRich Salz
Andy found an additional typo "can be can be". Now I have that silly "Que sera sera" song stuck in my head. Reviewed-by: Andy Polyakov <appro@openssl.org>
2014-08-30RT1941: c_rehash.pod is missingJames Westby
Add the file written by James Westby, graciously contributed under the terms of the OpenSSL license. Reviewed-by: Andy Polyakov <appro@openssl.org>
2014-08-30apps/speed.c: add -misalign command-line argument.Andy Polyakov
New option allows to perform benchmarks on misaligned data. Reviewed-by: Rich Salz <rsalz@openssl.org>
2014-08-29RT2379: Bug in BIO_set_accept_port.podRich Salz
The doc says that port can be "*" to mean any port. That's wrong. Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2014-08-29Fixed double inclusion of string.hMatt Caswell
PR2693 Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-08-29RT2880: HFS is case-insensitive filenamesJim Reid
Add Darwin to list of case-insensitive filenames when installing manapges. When doing this, I noticed that we weren't setting "filecase" for the HTML doc install. Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2014-08-28RT3246: req command prints version number wrongRich Salz
Make X509_REQ_print_ex do the same thing that X509_REQ_print does. Reviewed-by: Matt Caswell <matt@openssl.org>
2014-08-28RT1665,2300: Crypto doc cleanupsRich Salz
RT1665: aes documentation. Paul Green wrote a nice aes.pod file. But we now encourage the EVP interface. So I took his RT item and used it as impetus to add the AES modes to EVP_EncryptInit.pod I also noticed that rc4.pod has spurious references to some other cipher pages, so I removed them. RT2300: Clean up MD history (merged into RT1665) Put HISTORY section only in EVP_DigestInit.pod. Also add words to discourage use of older cipher-specific API, and remove SEE ALSO links that point to them. Make sure digest pages have a NOTE that says use EVP_DigestInit. Review feedback: More cleanup in EVP_EncryptInit.pod Fixed SEE ALSO links in ripemd160.pod, sha.pod, mdc2.pod, blowfish.pod, rc4.d, and des.pod. Re-order sections in des.pod for consistency Reviewed-by: Matt Caswell <matt@openssl.org>
2014-08-28RT2193: #ifdef errors in bss_dgram.cl.montecchiani@gmail.com
Problem with #ifdef in the BIO_CTRL_DGRAM_MTU_DISCOVER case that is different from the BIO_CTRL_DGRAM_QUERY_MTU one which seems correct. Reviewed-by: Matt Caswell <matt@openssl.org>
2014-08-28RT3102: Document -verify_error_return flagRich Salz
Also moved some options around so all the "verify" options. are clumped together. Reviewed-by: Matt Caswell <matt@openssl.org>
2014-08-28Fix comments, add new test.Dr. Stephen Henson
Fix comments in ssltest.c: return value of 0 now means extension is omitted and add_cb is not called for servers if the corresponding extension is absent in ClientHello. Test add_cb is not called if extension is not received. Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-08-28Custom extension documentation.Dr. Stephen Henson
Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-08-28Rename some callbacks, fix alignment.Dr. Stephen Henson
Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-08-28Use consistent function naming.Dr. Stephen Henson
Instead of SSL_CTX_set_custom_cli_ext and SSL_CTX_set_custom_srv_ext use SSL_CTX_add_client_custom_ext and SSL_CTX_add_server_custom_ext. Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-08-28New function SSL_extension_supported().Dr. Stephen Henson
Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-08-28New extension callback features.Dr. Stephen Henson
Support separate parse and add callback arguments. Add new callback so an application can free extension data. Change return value for send functions so < 0 is an error 0 omits extension and > 0 includes it. This is more consistent with the behaviour of other functions in OpenSSL. Modify parse_cb handling so <= 0 is an error. Make SSL_CTX_set_custom_cli_ext and SSL_CTX_set_custom_cli_ext argument order consistent. NOTE: these changes WILL break existing code. Remove (now inaccurate) in line documentation. Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-08-28Callback revision.Dr. Stephen Henson
Use "parse" and "add" for function and callback names instead of "first" and "second". Change arguments to callback so the extension type is unsigned int and the buffer length is size_t. Note: this *will* break existing code. Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-08-28Remove serverinfo checks.Dr. Stephen Henson
Since sanity checks are performed for all custom extensions the serverinfo checks are no longer needed. Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-08-28Add custom extension sanity checks.Dr. Stephen Henson
Reject attempts to use extensions handled internally. Add flags to each extension structure to indicate if an extension has been sent or received. Enforce RFC5246 compliance by rejecting duplicate extensions and unsolicited extensions and only send a server extension if we have sent the corresponding client extension. Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-08-28Custom extension revision.Dr. Stephen Henson
Use the same structure for client and server custom extensions. Add utility functions in new file t1_ext.c. Use new utility functions to handle custom server and client extensions and remove a lot of code duplication. Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-08-28fix warningDr. Stephen Henson
Reviewed-by: Geoff Thorpe <geoff@openssl.org>
2014-08-28Constant-time utilitiesEmilia Kasper
Pull constant-time methods out to a separate header, add tests. Reviewed-by: Bodo Moeller <bodo@openssl.org>
2014-08-27RT2400: ASN1_STRING_to_UTF8 missing initializerRaphael Spreitzer
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-08-27Merge branch 'master' of git.openssl.org:opensslRich Salz
Gah, I hate when I forget to pull before merging. Reviewed-by: rsalz
2014-08-27RT2308: Add extern "C" { ... } wrapperRich Salz
Add the wrapper to all public header files (Configure generates one). Don't bother for those that are just lists of #define's that do renaming. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-08-27Explicitly check for empty ASN.1 strings in d2i_ECPrivateKeyEmilia Kasper
The old code implicitly relies on the ASN.1 code returning a \0-prefixed buffer when the buffer length is 0. Change this to verify explicitly that the ASN.1 string has positive length. Reviewed-by: Dr Stephen Henson <steve@openssl.org>
2014-08-27RT3065: automatically generate a missing EC public keyMatt Caswell
When d2i_ECPrivateKey reads a private key with a missing (optional) public key, generate one automatically from the group and private key. Reviewed-by: Dr Stephen Henson <steve@openssl.org>
2014-08-27RT3065: ec_private_key_dont_crashAdam Langley
This change saves several EC routines from crashing when an EC_KEY is missing a public key. The public key is optional in the EC private key format and, without this patch, running the following through `openssl ec` causes a crash: -----BEGIN EC PRIVATE KEY----- MBkCAQEECAECAwQFBgcIoAoGCCqGSM49AwEH -----END EC PRIVATE KEY----- Reviewed-by: Dr Stephen Henson <steve@openssl.org>
2014-08-27RT2210: Add missing EVP_cleanup to exampleMihai Militaru
I also removed some trailing whitespace and cleaned up the "see also" list. Reviewed-by: Emilia Kasper <emilia@openssl.org>
2014-08-26Add tags/TAGS target; rm tags/TAGS in cleanRich Salz
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-08-26Merge branch 'master' of git.openssl.org:opensslRich Salz
Stupid git tricks :( Reviewed-by: rsalz
2014-08-26RT1744: SSL_CTX_set_dump_dh() doc feedbackDavid Gatwood
The description of when the server creates a DH key is confusing. This cleans it up. (rsalz: also removed trailing whitespace.) Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2014-08-26RT1744: SSL_CTX_set_dump_dh() doc feedbackDavid Gatwood
The description of when the server creates a DH key is confusing. This cleans it up. (rsalz: also removed trailing whitespace.) Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2014-08-25RT1804: fix EXAMPLE in EVP_EncryptInit.podJan Schaumann
The EXAMPLE that used FILE and RC2 doesn't compile due to a few minor errors. Tweak to use IDEA and AES-128. Remove examples about RC2 and RC5. Reviewed-by: Emilia Kasper <emilia@openssl.org>
2014-08-24Typo fixes to evp documentation.Matt Caswell
This patch was submitted by user "Kox" via the wiki Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-08-22RT 3060: amend patchEmilia Kasper
Use existing error code SSL_R_RECORD_TOO_SMALL for too many empty records. For ease of backporting the patch to release branches. Reviewed-by: Bodo Moeller <bodo@openssl.org>
2014-08-22RT3061: slightly amend patchEmilia Kasper
Add an extra NULL dereference check Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2014-08-22Improve EVP_PKEY_sign documentationEmilia Kasper
Clarify the intended use of EVP_PKEY_sign. Make the code example compile. Reviewed-by: Dr Stephen Henson <steve@openssl.org>
2014-08-21RT3142: Extra initialization in state_machineJeffrey Walton
Remove extra initialization calls in the sample program. Reviewed-by: Emilia Kasper <emilia@openssl.org>
2014-08-21define inline for Visual StudioEmilia Kasper
In Visual Studio, inline is available in C++ only, however __inline is available for C, see http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Dr Stephen Henson <steve@openssl.org>
2014-08-21Fix build when BSAES_ASM is defined but VPAES_ASM is notEmilia Kasper
Reviewed-by: Andy Polyakov <appro@openssl.org>
2014-08-21bn/asm/rsaz-*.pl: allow spaces in Perl path name.Andy Polyakov
RT: 2835 Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2014-08-21sha1-mb-x86_64.pl: add commentary.Andy Polyakov
Reviewed-by: Emilia Kasper <emilia@openssl.org>
2014-08-20PR2490: Remove unused local variable bn ecp_nist.cLaszlo Papp
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2014-08-20crypto/evp/e_aes_cbc_hmac_sha[1|256].c: fix compiler warnings.Andy Polyakov
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2014-08-20sha1-mb-x86_64.pl: fix typo.Andy Polyakov
Reviewed-by: Emilia Kasper <emilia@openssl.org>
2014-08-19RT2847: Don't "check" uninitialized memoryMartin Olsson
Don't check err variable until after it's been set. Reviewed-by: Emilia Kasper <emilia@openssl.org>