/******************************************************/
static void
get_Name_type (ASN1_TYPE cert_def, ASN1_TYPE cert, const char *root,
- char *answer)
+ unsigned char *ans)
{
int k, k2, result, len;
char name[128], str[1024], str2[1024], name2[128], counter[5], name3[128];
ASN1_TYPE value = ASN1_TYPE_EMPTY;
char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
-
+ char *answer = (char *) ans;
answer[0] = 0;
k = 1;
do
str, 1);
result =
asn1_create_element (cert_def, "PKIX1Implicit88.Dss-Parms", ¶m);
- str2 = "\xd4\x38"; /* only an example */
+ str2 = (const unsigned char *) "\xd4\x38"; /* only an example */
result = asn1_write_value (param, "p", str2, 128);
- str2 = "\xd4\x38"; /* only an example */
+ str2 = (const unsigned char *) "\xd4\x38"; /* only an example */
result = asn1_write_value (param, "q", str2, 20);
- str2 = "\xd4\x38"; /* only an example */
+ str2 = (const unsigned char *) "\xd4\x38"; /* only an example */
result = asn1_write_value (param, "g", str2, 128);
*der_len = max_len;
result = asn1_der_coding (param, "", der, der_len, errorDescription);
/* subjectPublicKey */
- str2 = "\x02\x81"; /* only an example */
+ str2 = (const unsigned char *) "\x02\x81"; /* only an example */
result =
asn1_write_value (cert1,
"tbsCertificate.subjectPublicKeyInfo.subjectPublicKey",
result =
asn1_write_value (cert1, "tbsCertificate.extensions.?LAST.critical",
"FALSE", 1);
- str2 = "\x04\x14\xe7\x26\xc5"; /* only an example */
+ str2 = (const unsigned char *) "\x04\x14\xe7\x26\xc5"; /* only an example */
result =
asn1_write_value (cert1, "tbsCertificate.extensions.?LAST.extnValue",
str2, 22);
result =
asn1_read_value (cert_def, "PKIX1Implicit88.id-dsa-with-sha1", str2,
&len);
- if (!strcmp (str, str2))
+ if (!strcmp ((char *) str, (char *) str2))
{ /* dsa-with-sha */
result = asn1_der_decoding_startEnd (cert2, der, der_len,
/******************************************************/
static void
get_Name_type (ASN1_TYPE cert_def, ASN1_TYPE cert, const char *root,
- char *answer)
+ unsigned char *ans)
{
int k, k2, result, len;
char name[128], str[1024], str2[1024], name2[128], counter[5], name3[128];
ASN1_TYPE value = ASN1_TYPE_EMPTY;
char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
+ char *answer = (char *) ans;
answer[0] = 0;
k = 1;
asn1_write_value (crl,
"tbsCertList.revokedCertificates.?LAST.crlEntryExtensions.?LAST.critical",
"FALSE", 1);
- str2 = "\x0a\x01\x01";
+ str2 = (const unsigned char *) "\x0a\x01\x01";
result =
asn1_write_value (crl,
"tbsCertList.revokedCertificates.?LAST.crlEntryExtensions.?LAST.extnValue",
result =
asn1_read_value (cert_def, "PKIX1Implicit88.id-dsa-with-sha1", str2,
&len);
- if (!strcmp (str, str2))
+ if (!strcmp ((char *) str, (char *) str2))
{ /* dsa-with-sha */
result = asn1_der_decoding_startEnd (crl2, der, der_len,