projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add information and pem strings. Update dependencies.
[openssl.git]
/
crypto
/
asn1
/
a_bool.c
diff --git
a/crypto/asn1/a_bool.c
b/crypto/asn1/a_bool.c
index 41a95aa278b419c6a1e245aaf1366ad62c7b6874..331acdf05350cff70cd90678d401fec1978b7b5d 100644
(file)
--- a/
crypto/asn1/a_bool.c
+++ b/
crypto/asn1/a_bool.c
@@
-58,15
+58,9
@@
#include <stdio.h>
#include "cryptlib.h"
#include <stdio.h>
#include "cryptlib.h"
-#include
"asn1.h"
+#include
<openssl/asn1t.h>
-/* ASN1err(ASN1_F_D2I_ASN1_BOOLEAN,ASN1_R_EXPECTING_A_BOOLEAN);
- * ASN1err(ASN1_F_D2I_ASN1_BOOLEAN,ASN1_R_BOOLEAN_IS_WRONG_LENGTH);
- */
-
-int i2d_ASN1_BOOLEAN(a,pp)
-int a;
-unsigned char **pp;
+int i2d_ASN1_BOOLEAN(int a, unsigned char **pp)
{
int r;
unsigned char *p;
{
int r;
unsigned char *p;
@@
-81,13
+75,10
@@
unsigned char **pp;
return(r);
}
return(r);
}
-int d2i_ASN1_BOOLEAN(a, pp, length)
-int *a;
-unsigned char **pp;
-long length;
+int d2i_ASN1_BOOLEAN(int *a, const unsigned char **pp, long length)
{
int ret= -1;
{
int ret= -1;
- unsigned char *p;
+
const
unsigned char *p;
long len;
int inf,tag,xclass;
int i=0;
long len;
int inf,tag,xclass;
int i=0;
@@
-119,3
+110,5
@@
err:
ASN1err(ASN1_F_D2I_ASN1_BOOLEAN,i);
return(ret);
}
ASN1err(ASN1_F_D2I_ASN1_BOOLEAN,i);
return(ret);
}
+
+