Commit Graph

72 Commits

Author SHA1 Message Date
Nicolas Williams
943e76f99b Fix leak in hx509_general_name_unparse() 2016-11-20 17:43:51 -06:00
Nicolas Williams
1c81ddf4e2 Round #2 of scan-build warnings cleanup 2016-11-16 17:03:14 -06:00
Love Hornquist Astrand
4e44171a28 cast away enum warnings 2013-06-03 22:05:09 -07:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
f5f9014c90 Warning fixes from Christos Zoulas
- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
2011-04-29 20:25:05 -07:00
Karolin Seeger
77a6204452 s4-heimdal: Fix typo in comment.
Karolin

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-09-26 15:08:28 -07:00
Love Hornquist Astrand
fa4c84e6d6 make printablestring and ia5string octetstrings 2010-08-08 15:51:33 -07:00
Love Hornquist Astrand
fd107d08c4 use case compare for teletex string 2010-05-01 11:47:02 +02:00
Love Hornquist Astrand
7b999148f8 Rename str to oid in the function namespace to avoid -Wshadow warning
Based on a report from Matthias Dieter Wallnöfer.
2009-10-03 11:35:45 -07:00
Love Hornquist Astrand
215b3813f6 teletexString is now a real string type 2009-09-30 00:54:13 -07:00
Love Hornquist Astrand
d3828fe201 Don't depend on that memcmp() have same return value on all platforms
BSDish libc returns -14 3 14, while GNU LIBC returns -1 3 1.
2009-08-14 05:34:50 +02:00
Love Hornquist Astrand
b1dc4dc97e (_hx509_Name_to_string): free memory on failure (that should not happen) [CID 176] 2009-07-30 07:25:36 +02:00
Love Hörnquist Åstrand
4cd4853c3b Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25244 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:19:22 +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
0efc14ab95 fix warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24478 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:49:13 +00:00
Love Hörnquist Åstrand
b2744f137f (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24475 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:48:44 +00:00
Love Hörnquist Åstrand
92d16c8a19 use wind to convert strings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24474 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:48:34 +00:00
Love Hörnquist Åstrand
dd23f4a8a9 free name on error, from coverity #115
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24090 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:57:58 +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
7776ed30a9 Add language to support querying certificates to find a match. Support constructs like "1.3.6.1.5.2.3.5" IN %{certificate.eku} AND %{certificate.subject} TAILMATCH "C=SE"".
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22677 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-13 17:35:49 +00:00
Love Hörnquist Åstrand
8b9c6c4121 Use ldap-prep (with libwind) to compare names
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-11 20:46:21 +00:00
Love Hörnquist Åstrand
7f8059130a Replace hx509_name_to_der_name with hx509_name_binary.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22432 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-13 14:08:03 +00:00
Love Hörnquist Åstrand
b3efcbda59 more documentation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22327 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-15 04:49:37 +00:00
Love Hörnquist Åstrand
d651f2187d More documentation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22275 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-11 11:02:11 +00:00
Love Hörnquist Åstrand
1a0d3ae4bc spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22220 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-08 08:03:56 +00:00
Love Hörnquist Åstrand
382da5981b fix doxygen compiling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22218 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-08 07:56:22 +00:00
Love Hörnquist Åstrand
0c2180d1de (_hx509_Name_to_string): make printableString handle space (0x20)
diffrences as required by rfc3280.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21797 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-02 22:20:25 +00:00
Love Hörnquist Åstrand
0f76edd889 (quote_string): don't sign extend the (signed) char to avoid printing
too much, add an assert to check that we didn't overrun the buffer.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20891 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-04 22:51:41 +00:00
Love Hörnquist Åstrand
fcc3edd1aa Use right element out of the CHOICE for printableString and utf8String
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20890 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-04 22:39:51 +00:00
Love Hörnquist Åstrand
4204cbd8b1 Reset name before parsing it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-04 21:11:53 +00:00
Love Hörnquist Åstrand
5ed0a6bdd9 (hx509_general_name_unparse): unparse the other GeneralName nametypes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20158 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-03 09:54:27 +00:00
Love Hörnquist Åstrand
7d4ebe6f73 (hx509_general_name_unparse): function for unparsing GeneralName, only
supports GeneralName.URI


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20099 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-31 15:33:04 +00:00
Love Hörnquist Åstrand
dd4af7d8b0 Add STREET.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19933 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-16 13:07:13 +00:00
Love Hörnquist Åstrand
ba9774453c (hx509_name_expand): if env is NULL, return directly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-14 22:17:42 +00:00
Love Hörnquist Åstrand
8ddc5a6aa6 Remove abort, add error handling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 12:13:37 +00:00
Love Hörnquist Åstrand
a7ffead44c add hx509_name_expand
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19879 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 01:00:06 +00:00
Love Hörnquist Åstrand
91a0892b93 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19840 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 10:36:29 +00:00
Love Hörnquist Åstrand
5b9b07461e (hx509_name_cmp): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 21:44:25 +00:00
Love Hörnquist Åstrand
2dcbc1ab7e Split building RDN to a separate function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19596 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 23:04:11 +00:00
Love Hörnquist Åstrand
05a31a062b (no): add S=stateOrProvinceName
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19311 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-11 19:03:44 +00:00
Love Hörnquist Åstrand
a111935bca Handle printing and parsing raw oids in name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-24 06:09:48 +00:00
Love Hörnquist Åstrand
96204e40a8 prefix der primitives with der_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18453 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 09:42:43 +00:00
Love Hörnquist Åstrand
bf89bf0115 (_hx509_Name_to_string): remove dup const
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18251 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-06 07:23:29 +00:00
Love Hörnquist Åstrand
2acf7df729 New function _hx509_Name_to_string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18058 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-08 09:52:39 +00:00
Love Hörnquist Åstrand
a1e502b177 (no): Add serialNumber
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18018 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 18:54:55 +00:00
Love Hörnquist Åstrand
35a79e736b (no): add OU and sort
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17979 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:41:09 +00:00
Love Hörnquist Åstrand
a848124aa0 Avoid shadowing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17576 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 20:51:59 +00:00
Love Hörnquist Åstrand
cb704efeeb Rename u_intXX_t to uintXX_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:37:46 +00:00
Love Hörnquist Åstrand
701e7c5038 renamed one error code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17404 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-01 15:28:14 +00:00