Type-checked (and modern C compliant) OBJ_bsearch.
[openssl.git] / crypto / x509v3 / v3conf.c
index e0b097b335d0518e7724bde12f292c53d6a55621..00cf5b4a5b2e6e9b150881769f14728934f605cc 100644 (file)
  * Hudson (tjh@cryptsoft.com).
  *
  */
+
+
 #include <stdio.h>
-#include <pem.h>
-#include <objects.h>
-#include <conf.h>
-#include <err.h>
-#include "x509v3.h"
+#include "cryptlib.h"
+#include <openssl/asn1.h>
+#include <openssl/conf.h>
+#include <openssl/x509.h>
+#include <openssl/x509v3.h>
 
 /* Test application to add extensions from a config file */
 
-int main(argc, argv)
-int argc;
-char **argv;
+int main(int argc, char **argv)
 {
        LHASH *conf;
        X509 *cert;
@@ -118,7 +118,7 @@ char **argv;
                printf("%s", OBJ_nid2ln(OBJ_obj2nid(ext->object)));
                if(ext->critical) printf(",critical:\n");
                else printf(":\n");
-               X509V3_EXT_print_fp(stdout, ext, 0);
+               X509V3_EXT_print_fp(stdout, ext, 0, 0);
                printf("\n");
                
        }