Jeffrey Altman
1dd38cc3de
lib/hx509: declare and apply HX509_LIB_xxx macros
...
libhx509 is not built according to the same export and calling conventions
on Windows as the other libraries. This change declares and applies
HX509_LIB_FUNCTION, HX509_LIB_NORETURN_FUNCTION, HX509_LIB_CALL and
HX509_LIB_VARIABLE to lib/hx509.
As a result of this change the calling convention for exported functions
will be __stdcall instead of __cdecl.
Change-Id: Ibc3f05e8088030ef7d13798f1d9c9b190bc57797
2019-01-02 10:23:39 -06:00
Love Hörnquist Åstrand
a26007cebc
(keychain_init): free ctx on error
2015-04-18 17:08:09 -07:00
Love Hornquist Astrand
80fe143874
remove deprected warnings until we can move to non deprecated api
2013-06-03 22:03:20 -07:00
Love Hornquist Astrand
ebe9b82b8d
Fix warning (from Victor)
2013-06-03 21:56:34 -07:00
Love Hornquist Astrand
029de6cfa4
pass back an heim_error from hx509_cert_init
2012-10-07 06:33:13 -07:00
Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Jelmer Vernooij
36ade8b509
hx509: Make various functions used by Samba public.
...
* hx509_cert_public_encrypt
* hx509_parse_private_key
* hx509_private_key_assign_rsa
* hx509_private_key_free
* hx509_private_key_private_decrypt
* hx509_private_key_init
* hx509_private_key2SPKI
* hx509_request_get_name
* hx509_request_get_SubjectPublicKeyInfo
* hx509_request_free
* hx509_request_init
* hx509_request_set_name
* hx509_request_set_SubjectPublicKeyInfo
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2011-02-23 19:47:28 -08:00
Love Hornquist Astrand
3b51f94c2b
Make compile on pre-leopard (Tiger needs CSSM_SIZE), From Quanah Gibson-Mount
2010-01-08 13:17:47 +01:00
Love Hörnquist Åstrand
f77d976831
ignore the error from the free function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24876 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:34:44 +00:00
Love Hörnquist Åstrand
ff5dab4f4a
remove rcsid
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24795 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:28:18 +00:00
Love Hörnquist Åstrand
be7861f63b
implement kc_rsa_private_decrypt
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24202 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:30 +00:00
Love Hörnquist Åstrand
6937d41a02
remove trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898
switch to utf8 encoding of all files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
6c6a2829d7
use autoconf macro
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22084 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-16 20:12:30 +00:00
Love Hörnquist Åstrand
f4ae278f39
Make compile on Leopard.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22083 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-16 17:15:58 +00:00
Love Hörnquist Åstrand
fae08f960f
Introduce subtypes.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-16 07:00:49 +00:00
Love Hörnquist Åstrand
f622a16e97
Add hx509_cert_init_data and use everywhere
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21085 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 06:39:53 +00:00
Love Hörnquist Åstrand
7a61e0a75f
Implement trust anchor support with SecTrustCopyAnchorCertificates.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21082 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 02:09:26 +00:00
Love Hörnquist Åstrand
8456183c48
rename functions, leaks less memory and more paranoia.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20945 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-06 22:17:17 +00:00
Love Hörnquist Åstrand
7e3fbc9232
Provide rsa signatures.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 15:48:07 +00:00
Love Hörnquist Åstrand
624dc60c1b
Limit the searches to the selected keychain.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 06:17:44 +00:00
Love Hörnquist Åstrand
7ba3c7c11e
include -framework Security specific header files after #ifdef
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20922 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 06:05:24 +00:00
Love Hörnquist Åstrand
b14a49e02e
Find and attach private key (does not provide operations yet though).
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20921 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 05:54:19 +00:00
Love Hörnquist Åstrand
a9130ec025
Allow opening a specific chain, making "system" special and be the
...
system X509Anchors file. By not specifing any keychain ("KEYCHAIN:"),
all keychains are probed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20917 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 04:16:46 +00:00
Love Hörnquist Åstrand
90318d31b3
Remove err(), remove extra empty comment, fix _iter function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20913 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 03:57:52 +00:00
Love Hörnquist Åstrand
701cb835e8
Certificate only KeyChain backend.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20889 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-04 21:58:24 +00:00