aboutsummaryrefslogtreecommitdiff
path: root/apps/sess_id.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-11Fix NSS format session outputMatt Caswell1-2/+3
Commit 189ae368d91 (RT ticket 3352) provided the capability to output session key data in NSS format. The big apps cleanup broke that capability. This commit restores it. RT#4201 Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2015-09-06Change the way apps open their input and output filesRichard Levitte1-2/+2
The different apps had the liberty to decide whether they would open their input and output files in binary mode or not, which could be confusing if two different apps were handling the same type of file in different ways. The solution is to centralise the decision of low level file organisation, and that the apps would use a selection of formats to state the intent of the file. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-06Make the handling of output and input formats consistentRichard Levitte1-4/+1
Most of all, we needed to sort out which ones are binary and which ones are text, and make sure they are treated accordingly and consistently so Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-05-01free NULL cleanup -- codaRich Salz1-2/+1
After the finale, the "real" final part. :) Do a recursive grep with "-B1 -w [a-zA-Z0-9_]*_free" to see if any of the preceeding lines are an "if NULL" check that can be removed. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-04-24Big apps cleanup (option-parsing, etc)Rich Salz1-114/+71
This is merges the old "rsalz-monolith" branch over to master. The biggest change is that option parsing switch from cascasding 'else if strcmp("-foo")' to a utility routine and somethin akin to getopt. Also, an error in the command line no longer prints the full summary; use -help (or --help :) for that. There have been many other changes and code-cleanup, see bullet list below. Special thanks to Matt for the long and detailed code review. TEMPORARY: For now, comment out CRYPTO_mem_leaks() at end of main Tickets closed: RT3515: Use 3DES in pkcs12 if built with no-rc2 RT1766: s_client -reconnect and -starttls broke RT2932: Catch write errors RT2604: port should be 'unsigned short' RT2983: total_bytes undeclared #ifdef RENEG RT1523: Add -nocert to fix output in x509 app RT3508: Remove unused variable introduced by b09eb24 RT3511: doc fix; req default serial is random RT1325,2973: Add more extensions to c_rehash RT2119,3407: Updated to dgst.pod RT2379: Additional typo fix RT2693: Extra include of string.h RT2880: HFS is case-insensitive filenames RT3246: req command prints version number wrong Other changes; incompatibilities marked with *: Add SCSV support Add -misalign to speed command Make dhparam, dsaparam, ecparam, x509 output C in proper style Make some internal ocsp.c functions void Only display cert usages with -help in verify Use global bio_err, remove "BIO*err" parameter from functions For filenames, - always means stdin (or stdout as appropriate) Add aliases for -des/aes "wrap" ciphers. *Remove support for IISSGC (server gated crypto) *The undocumented OCSP -header flag is now "-header name=value" *Documented the OCSP -header flag Reviewed-by: Matt Caswell <matt@openssl.org>
2015-04-16Code style: space after 'if'Viktor Dukhovni1-1/+1
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-25free NULL cleanupRich Salz1-4/+2
This commit handles BIO_ACCEPT_free BIO_CB_FREE BIO_CONNECT_free BIO_free BIO_free_all BIO_vfree Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-23apps return value checksMatt Caswell1-1/+4
Ensure that all libssl functions called from within the apps have their return values checked where appropriate. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-01-24ifdef cleanup, part 4a: '#ifdef undef'Rich Salz1-20/+0
This removes all code surrounded by '#ifdef undef' One case is left: memmove() replaced by open-coded for loop, in crypto/stack/stack.c That needs further review. Also removed a couple of instances of /* dead code */ if I saw them while doing the main removal. Reviewed-by: Matt Caswell <matt@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell1-230/+208
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-05-24Modify the description of -noout to match the manpage. PR#3364Martin Kaiser1-1/+1
2014-05-24Add an NSS output format to sess_id to export to export the session id and ↵Martin Kaiser1-1/+3
the master key in NSS keylog format. PR#3352
2011-04-29Initial "opaque SSL" framework. If an application definesDr. Stephen Henson1-8/+10
OPENSSL_NO_SSL_INTERN all ssl related structures are opaque and internals cannot be directly accessed. Many applications will need some modification to support this and most likely some additional functions added to OpenSSL. The advantage of this option is that any application supporting it will still be binary compatible if SSL structures change.
2005-04-05some const fixesNils Larsch1-2/+2
2005-03-31Give everything prototypes (well, everything that's actually used).Ben Laurie1-1/+1
2002-12-03EXIT() may mean return(). That's confusing, so let's have it really meanRichard Levitte1-1/+1
exit() in whatever way works for the intended platform, and define OPENSSL_EXIT() to have the old meaning (the name is of course because it's only used in the openssl program)
2001-06-23Use apps_shutdown() in all applications, in case someone decides notRichard Levitte1-0/+1
to go the monolith way (does anyone do that these days?). NOTE: a few applications are missing in this commit. I've a few more changes in them that I haven't tested yet.
2001-02-20Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte1-1/+1
missed any. This compiles and runs on Linux, and external applications have no problems with it. The definite test will be to build this on VMS.
2001-02-06format stringsUlf Möller1-1/+1
2000-09-20On VMS, stdout may very well lead to a file that is written to in aRichard Levitte1-1/+9
record-oriented fashion. That means that every write() will write a separate record, which will be read separately by the programs trying to read from it. This can be very confusing. The solution is to put a BIO filter in the way that will buffer text until a linefeed is reached, and then write everything a line at a time, so every record written will be an actual line, not chunks of lines and not (usually doesn't happen, but I've seen it once) several lines in one record. Voila, BIO_f_linebuffer() is born. Since we're so close to release time, I'm making this VMS-only for now, just to make sure no code is needlessly broken by this. After the release, this BIO method will be enabled on all other platforms as well.
2000-02-11Make gcc 2.95.2 happy again, even under ``-Wall -Wshadow -Wpointer-arith ↵Ralf S. Engelschall1-0/+3
-Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline''.
2000-01-09New function X509_CTX_rget_chain(), make SSL_SESSION_print() display return ↵Dr. Stephen Henson1-1/+1
code. Remove references to 'TXT' in -inform and -outform switches.
1999-07-21Additional user data argument to pem_password_cb function typeBodo Möller1-1/+1
and to lots of PEM_... functions. Submitted by: Damien Miller <dmiller@ilogic.com.au>
1999-04-26Remove NOPROTO definitions and error code comments.Ulf Möller1-5/+0
1999-04-23Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller1-5/+5
Submitted by: Reviewed by: PR:
1999-04-19Change functions to ANSI C.Ulf Möller1-6/+2
1999-03-22Fix security hole.Ben Laurie1-1/+18
1999-01-31Fix some more typosMark J. Cox1-1/+1
Submitted by: Reviewed by: PR:
1999-01-28One more incorrect name in usage pageRalf S. Engelschall1-1/+1
1998-12-21Import of old SSLeay release: SSLeay 0.9.1b (unreleased)SSLeayRalf S. Engelschall1-5/+0
1998-12-21Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall1-2/+2
1998-12-21Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1-0/+305