aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/identification.c
Commit message (Collapse)AuthorAgeFilesLines
* asn1: Add additional OIDs seen in certificate DNsTobias Brunner2017-11-021-0/+3
|
* Migrate all enumerators to venumerate() interface changeTobias Brunner2017-05-261-6/+14
|
* identification: Compare identity types when comparing ID_FQDN/ID_RFC822_ADDR ↵Tobias Brunner2016-06-061-3/+4
| | | | | | identities References #1380.
* identification: Add support for dmdName RDN (2.5.4.54)Yannick Cann2016-04-251-0/+2
| | | | | | | It's listed in RFC 2256 but was later removed with RFC 4519, but there are still some certs that use it. Closes strongswan/strongswan#43.
* identification: Make `written` signed to fix error checking when printing rangesTobias Brunner2016-03-111-3/+3
|
* Implemented IPv4/IPv6 subnet and range identitiesAndreas Steffen2016-03-101-31/+356
| | | | | | The IKEv1 IPV4_ADDR_SUBNET, IPV6_ADDR_SUBNET, IPV4_ADDR_RANGE and IPV6_ADDR_RANGE identities have been fully implemented and can be used as owners of shared secrets (PSKs).
* Support pseudonym RDNAndreas Steffen2016-01-271-0/+2
|
* identification: Remove unused ID_USER_ID typeTobias Brunner2015-08-171-6/+3
|
* identification: Use UTF8String instead of the legacy T61String to encode DNsTobias Brunner2015-08-061-1/+1
| | | | | | | When strings in RDNs contain characters outside the character set for PrintableString use UTF8String as the passed string is most likely in that encoding (RFC 5280 actually recommends to use only those two string types).
* identification: Add hash() methodTobias Brunner2015-08-061-1/+36
| | | | | | | Compared to hashing the encoding we can ignore string types of RDNs when hashing DNs, making hash() compatible to equals() that does the same. Fixes #991.
* identification: Support custom types in string constructor prefixesMartin Willi2014-10-301-0/+39
|
* identification: Support prefixes in string constructors for an explicit typeMartin Willi2014-10-301-0/+48
|
* identification: Only use either , or / to separate RDNsTobias Brunner2014-06-181-3/+13
| | | | | If a DN starts with a slash (or whitespace and a slash) slashes will be used, otherwise commas.
* windows: Add a common Windows header for platform specific wrappersMartin Willi2014-06-031-4/+1
| | | | | Include some more basic system headers in utils.h, so we can use that common header on the different platforms.
* identification: Fix printing of empty RDNs on FreeBSDTobias Brunner2014-02-121-1/+6
| | | | On FreeBSD (null) is printed for NULL even if the precision is 0.
* identification: Properly check length before comparing for binary DN equalityMartin Willi2013-10-311-1/+1
| | | | Fixes CVE-2013-6075.
* identification: parse identities having a "@@" prefix as ID_RFC822_ADDRMartin Willi2013-07-181-11/+10
| | | | Original patch by Gerald Richter.
* Fail DN parsing if OID is unterminatedTobias Brunner2013-06-111-2/+6
| | | | | This is the case if the last OID is not followed by a = or if the string starts with a =.
* Fix DN printing if last RDN has an empty valueTobias Brunner2013-06-111-11/+32
|
* Fix DN parsing if last RDN has an empty valueTobias Brunner2013-06-111-1/+1
|
* Fix output of ASN.1 GNTobias Brunner2013-06-111-1/+1
|
* Use chunk_from_str in identification_from_stringTobias Brunner2013-06-111-17/+5
| | | | | We always have a non-empty string in those cases as "" is now handled as ID_ANY.
* Parse empty string as ID_ANYTobias Brunner2013-06-111-2/+3
|
* make TNC Access Requestor ID available to IMVsAndreas Steffen2013-03-031-9/+15
|
* Make sure first argument is an int when using %.*s to print e.g. chunksTobias Brunner2012-09-281-5/+5
|
* Pass opaque data to printf hooks and print_in_hook()Martin Willi2012-07-131-5/+5
|
* Properly handle empty RDN values in DN strings.Tobias Brunner2012-06-071-3/+11
|
* Add support for dnQualifier in DNs.Tobias Brunner2012-03-291-0/+2
|
* support unstructuredAddress in left|rightidAndreas Steffen2011-04-181-26/+28
|
* Do not print empty DN identities as invalidMartin Willi2011-01-051-2/+8
|
* Do not strdup() zero length strings in identification_create_from_string()Martin Willi2010-08-311-4/+20
|
* Fix use of snprintf() in identification DN to ASCII conversionMartin Willi2010-07-281-0/+12
|
* Use the group constraint in a more generic fashion, not only for attribute ↵Martin Willi2010-07-051-3/+1
| | | | certificates
* Renamed clone function to avoid name clash with uclibcMartin Willi2010-04-071-2/+2
|
* Migrated identification_t to INIT/METHOD macrosMartin Willi2009-12-211-128/+95
|
* Added identification constructor using a chunk of data, guessing id typeMartin Willi2009-11-121-0/+12
|
* display printable characters in dntoa()Andreas Steffen2009-11-041-9/+4
|
* moved attribute_manager to libstrongswanAndreas Steffen2009-10-131-0/+1
|
* created identification_create_from_sockaddr() functionAndreas Steffen2009-10-091-0/+33
|
* removed trailing spaces ([[:space:]]+$)Martin Willi2009-09-041-46/+46
|
* removed obsolete fingerprint identification typesMartin Willi2009-08-261-12/+7
|
* pruned OID treeAndreas Steffen2009-08-181-5/+4
|
* fixed wrong emailAddress OID introduced by revision c31687daAndreas Steffen2009-08-181-3/+3
|
* parse RDNs in multiple SEQUENCEs in all SETs of a DNMartin Willi2009-08-031-16/+24
|
* Corrected check for valid ASN1 types in rdn_enumerate.Tobias Brunner2009-07-141-2/+3
| | | | Because of the range of u_char the comparison was always TRUE before.
* double free caused strange side effectsAndreas Steffen2009-07-131-1/+0
|
* great, I got my comma backAndreas Steffen2009-07-121-1/+1
|
* added missing equals() method assignment for ID_ANY identitiesMartin Willi2009-07-071-1/+2
|
* centralized ID type specific method assignement in generic constructorMartin Willi2009-07-061-105/+69
|
* removed obsolete init_rdn()/get_next_rdn() functionsMartin Willi2009-07-061-124/+0
|