projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the algorithm implementations depend on the corresponding
[oweals/openssl.git]
/
crypto
/
asn1
/
x_algor.c
diff --git
a/crypto/asn1/x_algor.c
b/crypto/asn1/x_algor.c
index 2d94b047fe32a20746b7787e290ad49d5f890cb7..853a8dfeef49b9cdb9d63d74de7715f00a60847f 100644
(file)
--- a/
crypto/asn1/x_algor.c
+++ b/
crypto/asn1/x_algor.c
@@
-59,12
+59,7
@@
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/asn1_mac.h>
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/asn1_mac.h>
-
-/*
- * ASN1err(ASN1_F_D2I_X509_ALGOR,ERR_R_ASN1_LENGTH_MISMATCH);
- * ASN1err(ASN1_F_X509_ALGOR_NEW,ERR_R_EXPECTING_AN_ASN1_SEQUENCE);
- * ASN1err(ASN1_F_D2I_X509_ALGOR,ERR_R_ASN1_LENGTH_MISMATCH);
- */
+#include <openssl/x509.h>
int i2d_X509_ALGOR(X509_ALGOR *a, unsigned char **pp)
{
int i2d_X509_ALGOR(X509_ALGOR *a, unsigned char **pp)
{
@@
-116,6
+111,8
@@
void X509_ALGOR_free(X509_ALGOR *a)
if (a == NULL) return;
ASN1_OBJECT_free(a->algorithm);
ASN1_TYPE_free(a->parameter);
if (a == NULL) return;
ASN1_OBJECT_free(a->algorithm);
ASN1_TYPE_free(a->parameter);
-
Free((char *)
a);
+
OPENSSL_free(
a);
}
}
+IMPLEMENT_STACK_OF(X509_ALGOR)
+IMPLEMENT_ASN1_SET_OF(X509_ALGOR)