Fix security hole.
[openssl.git] / crypto / x509v3 / v3_skey.c
index 3994c79d670e9e79d5819d0b3099228389fa74d5..e725d6630c039334a3ed926cea52beb967324e5d 100644 (file)
  *
  */
 
+
 #include <stdio.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <pem.h>
-#include <asn1_mac.h>
-#include <err.h>
-#include <objects.h>
-#include <conf.h>
+#include "cryptlib.h"
 #include "x509v3.h"
 
 #ifndef NOPROTO
@@ -81,7 +76,7 @@ NID_subject_key_identifier, 0,
 i2d_ASN1_OCTET_STRING,
 (X509V3_EXT_I2S)i2s_ASN1_OCTET_STRING,
 (X509V3_EXT_S2I)s2i_skey_id,
-NULL, NULL, NULL, NULL};
+NULL, NULL, NULL, NULL, NULL};
 
 
 static ASN1_OCTET_STRING *octet_string_new(void)
@@ -129,7 +124,7 @@ char *str;
        ASN1_BIT_STRING *pk;
        unsigned char pkey_dig[EVP_MAX_MD_SIZE];
        EVP_MD_CTX md;
-       int diglen;
+       unsigned int diglen;
 
        if(strcmp(str, "hash")) return s2i_ASN1_OCTET_STRING(method, ctx, str);