projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EVP_PKEY_CTX utility functions.
[oweals/openssl.git]
/
crypto
/
x509
/
x509_att.c
diff --git
a/crypto/x509/x509_att.c
b/crypto/x509/x509_att.c
index df49b0b17fffa6f89b4115a33621c8cb2e5915d0..fb04cdcf68d0d4fa7b4958d68fde172689ac4e4f 100644
(file)
--- a/
crypto/x509/x509_att.c
+++ b/
crypto/x509/x509_att.c
@@
-1,4
+1,3
@@
-/* crypto/x509/x509_att.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@
-58,7
+57,7
@@
#include <stdio.h>
#include <openssl/stack.h>
#include <stdio.h>
#include <openssl/stack.h>
-#include "cryptlib.h"
+#include "
internal/
cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/objects.h>
#include <openssl/evp.h>
#include <openssl/asn1.h>
#include <openssl/objects.h>
#include <openssl/evp.h>
@@
-309,7
+308,7
@@
int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype,
}
atype = stmp->type;
} else if (len != -1) {
}
atype = stmp->type;
} else if (len != -1) {
- if (
!(stmp = ASN1_STRING_type_new(attrtype))
)
+ if (
(stmp = ASN1_STRING_type_new(attrtype)) == NULL
)
goto err;
if (!ASN1_STRING_set(stmp, data, len))
goto err;
goto err;
if (!ASN1_STRING_set(stmp, data, len))
goto err;
@@
-322,7
+321,7
@@
int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype,
*/
if (attrtype == 0)
return 1;
*/
if (attrtype == 0)
return 1;
- if (
!(ttmp = ASN1_TYPE_new())
)
+ if (
(ttmp = ASN1_TYPE_new()) == NULL
)
goto err;
if ((len == -1) && !(attrtype & MBSTRING_FLAG)) {
if (!ASN1_TYPE_set1(ttmp, attrtype, data))
goto err;
if ((len == -1) && !(attrtype & MBSTRING_FLAG)) {
if (!ASN1_TYPE_set1(ttmp, attrtype, data))