summaryrefslogtreecommitdiffstats
path: root/engines/e_capi.c
AgeCommit message (Collapse)Author
2016-04-13Rename internal symbol to follow internal naming patternRichard Levitte
Reviewed-by: Matt Caswell <matt@openssl.org>
2016-04-13Rename int_*() functions to *_int()Matt Caswell
There is a preference for suffixes to indicate that a function is internal rather than prefixes. Note: the suffix is only required to disambiguate internal functions and public symbols with the same name (but different case) Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-04-13Rename lots of *_intern or *_internal function to int_*Matt Caswell
There was a lot of naming inconsistency, so we try and standardise on one form. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-04-07Fix forgotten adaptation to opaque RSA and RSA_METHODRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-04-03Rename get/set_app_data to get0/set0_app_dataMatt Caswell
Also fixed a style issue Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Stephen Henson <steve@openssl.org>
2016-04-03Various DSA opacity fixupsMatt Caswell
Numerous fixups based on feedback of the DSA opacity changes. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Stephen Henson <steve@openssl.org>
2016-04-03Make DSA_METHOD opaqueMatt Caswell
Move the dsa_method structure out of the public header file, and provide getter and setter functions for creating and modifying custom DSA_METHODs. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Stephen Henson <steve@openssl.org>
2016-03-08Adapt e_capi to the DSA_SIG_get0() APIRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-11Test for and use AES CSP for RSA if present.Dr Stephen Henson
Some keys are attached to the full RSA CSP which doesn't support SHA2 algorithms: uses the AES CSP if present. Reviewed-by: Tim Hudson <tjh@openssl.org>
2016-02-09Auto init/deinit libcryptoMatt Caswell
This builds on the previous commit to auto initialise/deinitialise libcrypto. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-01-26Remove /* foo.c */ commentsRich Salz
This was done by the following find . -name '*.[ch]' | /tmp/pl where /tmp/pl is the following three-line script: print unless $. == 1 && m@/\* .*\.[ch] \*/@; close ARGV if eof; # Close file to reset $. And then some hand-editing of other files. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2015-12-16Rename some BUF_xxx to OPENSSL_xxxRich Salz
Rename BUF_{strdup,strlcat,strlcpy,memdup,strndup,strnlen} to OPENSSL_{strdup,strlcat,strlcpy,memdup,strndup,strnlen} Add #define's for the old names. Add CRYPTO_{memdup,strndup}, called by OPENSSL_{memdup,strndup} macros. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-12-02Remove RSA_FLAG_SIGN_VER flag.Dr. Stephen Henson
Remove RSA_FLAG_SIGN_VER: this was origininally used to retain binary compatibility after RSA_METHOD was extended to include rsa_sign and rsa_verify fields. It is no longer needed. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-11-09Continue malloc standardisation in enginesMatt Caswell
Continuing from previous work standardise use of malloc in the engine code. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-10-30Replace "SSLeay" in API with OpenSSLRich Salz
All instances of SSLeay (any combination of case) were replaced with the case-equivalent OpenSSL. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-09-29engine/e_capi.c: fix various warnings.Andy Polyakov
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-09-03remove 0 assignments.Rich Salz
After openssl_zalloc, cleanup more "set to 0/NULL" assignments. Many are from github feedback. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-05-11Use p==NULL not !p (in if statements, mainly)Rich Salz
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-05-04Use safer sizeof variant in mallocRich Salz
For a local variable: TYPE *p; Allocations like this are "risky": p = OPENSSL_malloc(sizeof(TYPE)); if the type of p changes, and the malloc call isn't updated, you could get memory corruption. Instead do this: p = OPENSSL_malloc(sizeof(*p)); Also fixed a few memset() calls that I noticed while doing this. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-05-01free null cleanup finaleRich Salz
Don't check for NULL before calling OPENSSL_free Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-24free NULL cleanupRich Salz
Start ensuring all OpenSSL "free" routines allow NULL, and remove any if check before calling them. This gets DH_free, DSA_free, RSA_free Reviewed-by: Matt Caswell <matt@openssl.org>
2015-02-06Remove X509_PAIRRich Salz
Unused type; a pair X509 certificates. Intended for LDAP support. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-13For master windows build dsa.h is now needed.Dr. Stephen Henson
Reviewed-by: Matt Caswell <matt@openssl.org>
2014-12-10capi_ctrl, capi_vtrace: check for NULL after allocating and free itKurt Roeckx
Reviewed-by: Matt Caswell <matt@openssl.org>
2014-12-04capi_get_provname: Check return valuesKurt Roeckx
Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04capi_get_key: check for NULL after allocating keyJonas Maebe
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04capi_cert_get_fname: check for NULL after allocating wfnameJonas Maebe
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04capi_get_provname: free name on error if it was malloc'edJonas Maebe
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-07-02Add support for SHA2 in CAPI ENGINE.Libor Krystek
PR#2706 though patch is from PR#3366.
2012-12-19engines/e_capi.c: fix typo.Andy Polyakov
Submitted by: Pierre Delaage
2012-11-18PR: 2880Dr. Stephen Henson
Submitted by: "Florian Rüchel" <florian.ruechel@ruhr-uni-bochum.de> Correctly handle local machine keys in the capi ENGINE.
2012-02-11PR: 2703Dr. Stephen Henson
Submitted by: Alexey Melnikov <alexey.melnikov@isode.com> Fix some memory and resource leaks in CAPI ENGINE.
2012-02-11PR: 2705Dr. Stephen Henson
Submitted by: Alexey Melnikov <alexey.melnikov@isode.com> Only create ex_data indices once for CAPI engine.
2011-05-15new flag to stop ENGINE methods being registeredDr. Stephen Henson
2011-05-15NULL is a valid cspnameDr. Stephen Henson
2011-01-30stop warnings about no previous prototype when compiling shared enginesDr. Stephen Henson
2010-12-14e_capi.c: rearrange #include-s to improve portability.Andy Polyakov
PR: 2394
2010-12-12e_capi.c: change from ANSI to TCHAR domain. This makes it compilable onAndy Polyakov
Windows CE/Mobile, yet keeps it normal Windows loop. PR: 2350
2010-11-18PR: 2374Dr. Stephen Henson
Submitted by: Guenter <lists@gknw.net> Reviewed by: steve Don't compile capi ENGINE on mingw32
2010-03-15e_capi.c: fix typo.Andy Polyakov
2010-03-15workaround for missing definition in some headersDr. Stephen Henson
2009-12-30Adapt mingw config for newer mingw environment. Note modified conditionalAndy Polyakov
compilation in e_capi.c. PR: 2113
2009-05-29Update from 0.9.8-stable.Dr. Stephen Henson
2009-05-03Make CAPI engine UNICODE aware (it didn't work on Win64).Andy Polyakov
2009-04-26Update from 1.0.0-stable.Dr. Stephen Henson
2008-09-12AIX build updates.Andy Polyakov
2008-08-13fix error function codesBodo Möller
2008-06-25Update from stable branch.Dr. Stephen Henson
2008-06-18Update from stable branch.Dr. Stephen Henson