Dmitry Timoshkov
8afb89436f
crypt32: Avoid truncating unicode chars.
...
So that strings containing Cyrillic Capital Letter ER (0x420) won't be
quoted when not needed.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-17 20:57:54 +01:00
Alexandre Julliard
4120fb994a
crypt32: Use wide-character string literals.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 11:44:12 +01:00
Alexandre Julliard
03bf236961
crypt32: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 11:41:21 +01:00
Nikolay Sivov
6de2e83e00
crypt32: Use ARRAY_SIZE macro.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-20 11:23:06 +02:00
Akihiro Sagawa
71e6152077
crypt32: Use isspaceW() instead of isspace() for WCHARs.
...
Found with Coccinelle.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 18:58:57 +02:00
Nikolay Sivov
53a065ae0a
crypt32: Fix key name null termination (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-24 22:58:44 +09:00
Bruno Jesus
4a28977f38
crypt32: Fix conversion of multiple fields in CertStrToName.
2014-07-22 14:25:34 +02:00
Dmitry Timoshkov
ba1b572da2
crypt32: Add support for decoding serial number property in the certificate attributes.
2013-12-12 12:27:29 +01:00
Juan Lang
e8b98b3145
crypt32: Test/correct CertGetNameString with NULL pvTypePara.
2011-09-09 13:33:11 +02:00
Christian Inci
99f6894c66
crypt32: Fix CertStrToName's CERT_NAME_STR_NO_QUOTING_FLAG usage.
2011-04-19 18:29:24 +02:00
Christian Inci
a0207c88a7
crypt32: Fix a string test.
2011-04-11 19:31:40 +02:00
Juan Lang
74cf35d2ab
crypt32: Fix string quoting in CertRDNValueToStrA/W and CertNameToStrA/W.
...
Based on an idea of Christian Inci's.
2011-02-02 12:23:28 +01:00
Juan Lang
862eab2820
crypt32: Ensure temporary string is NULL-terminated to avoid uninitialized memory access (valgrind).
2011-01-20 12:20:02 +01:00
Juan Lang
c3bc7f2cba
crypt32: Simplify a function.
2011-01-20 12:19:43 +01:00
Juan Lang
a1352035d1
crypt32: Implement CertRDNValueToStr for UTF8 strings.
2010-10-20 12:32:58 +02:00
Juan Lang
8f2821ac77
crypt32: The newline character must also be quoted.
2010-10-20 12:31:53 +02:00
Juan Lang
7833f30721
crypt32: Correct Unicode quoting of BMP strings.
2010-10-20 12:31:46 +02:00
Juan Lang
4141625284
crypt32: Remove unneeded comments.
2010-10-20 12:31:10 +02:00
Juan Lang
c654606405
crypt32: Remove broken UTF-8 string decoding support.
2010-10-19 10:19:11 +02:00
Juan Lang
dcafe721bf
crypt32: Implement quoting of BMP strings.
2010-10-19 10:18:59 +02:00
Juan Lang
993068038e
crypt32: Implement quoting of simple string types.
2010-10-19 10:18:53 +02:00
Andrew Talbot
4bdeb7dcb3
crypt32: Constify some variables.
2010-08-20 13:21:30 +02:00
Francois Gouget
d2cc5380db
crypt32: Fix compilation on systems that don't support nameless unions.
2009-10-19 14:45:10 +02:00
Juan Lang
5cefdb68c5
crypt32: Fix potential buffer overruns in CertGetNameStringW.
2009-09-10 10:49:32 +02:00
Juan Lang
89173715b2
crypt32: Implement CertGetNameStringW for CERT_NAME_URL_TYPE.
2009-09-09 16:25:23 +02:00
Juan Lang
2fe736d928
crypt32: Implement CertGetNameStringW for CERT_NAME_DNS_TYPE.
2009-09-09 16:25:23 +02:00
Juan Lang
6dfe7bc3a6
crypt32: Implement CertGetNameStringW for CERT_NAME_EMAIL_TYPE.
2009-09-09 16:25:23 +02:00
Juan Lang
288c79cb16
crypt32: Implement CertGetNameStringW for CERT_NAME_RDN_TYPE.
2009-09-09 16:25:22 +02:00
Juan Lang
dfcd8a67c1
crypt32: Implement CertGetNameStringW for CERT_NAME_ATTR_TYPE.
2009-09-09 16:25:22 +02:00
Juan Lang
ef7cda722c
crypt32: Further simplify CertGetNameStringW.
2009-09-09 16:25:22 +02:00
Juan Lang
4d2972c844
crypt32: Use a helper function to simplify CertGetNameStringW.
2009-09-09 16:25:22 +02:00
Juan Lang
7d83106427
crypt32: Return an empty string from CertGetNameStringW if a name couldn't be found.
2009-09-09 16:25:22 +02:00
Juan Lang
c7db5ee6a7
crypt32: Correct searching the alternate name in CertGetNameStringW if the main name doesn't contain an appropriate OID.
2009-09-09 16:25:22 +02:00
Andrew Talbot
85f9460a58
crypt32: Constify some variables.
2009-06-17 12:04:35 +02:00
Juan Lang
e9352b90f8
crypt32: Add a function to format a CERT_NAME_BLOB as an indented string, and implement CertNameToStrW on top of it.
2008-11-17 12:59:22 +01:00
Andrew Talbot
7a54be05f0
crypt32: Sign-compare warnings fix.
2008-09-24 12:52:52 +02:00
Huw Davies
1319b367fc
crypt32: Add support for CERT_NAME_STR_REVERSE_FLAG.
2008-08-27 13:21:20 +02:00
Huw Davies
08c2b101f2
crypt32: Remove some unnecessary code.
2008-08-22 10:39:31 +02:00
Huw Davies
e714064515
crypt32: Don't decrease the size of the buffer, since we're already counting the characters that we're adding to it.
2008-08-22 10:39:28 +02:00
Andrew Talbot
5d886557df
crypt32: Remove unneeded casts.
2007-12-31 17:44:51 +01:00
Juan Lang
159c8af56a
crypt32: Use consistent error checking.
2007-11-02 12:38:21 +01:00
Juan Lang
644dedb75d
crypt32: Free memory on all paths.
2007-11-02 12:38:15 +01:00
Juan Lang
81a382ac31
crypt32: Set last error on alloc failure.
2007-11-02 12:38:10 +01:00
Juan Lang
dda8053179
crypt32: Always set *ppszError.
2007-10-22 13:52:24 +02:00
Juan Lang
e0b8e37bf0
crypt32: Don't allocate a 0-length string.
2007-10-22 13:52:19 +02:00
Juan Lang
7cf611ef3b
crypt32: Fail if MultiByteToWideChar converts 0 characters.
2007-10-22 13:52:09 +02:00
Juan Lang
05d2ab176a
crypt32: Implement CertRDNValueToStr for UTF-8 strings.
2007-08-08 15:32:00 +02:00
Alexandre Julliard
df3ccaba24
crypt32: Fix an uninitialized variable compiler warning.
2007-06-26 21:30:41 +02:00
Jeff Latimer
417ae04ed9
crypt32: Fix possible dereference of NULL ptr.
2007-06-25 23:21:55 +02:00
Alexandre Julliard
c2cf60fcee
crypt32: Fix incorrect usage of CharNextA.
2007-06-25 19:55:29 +02:00