~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to apps/ca.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
#include <openssl/ocsp.h>
77
77
#include <openssl/pem.h>
78
78
 
79
 
#ifdef OPENSSL_SYS_WINDOWS
80
 
#define strcasecmp _stricmp
81
 
#else
82
 
#  ifdef NO_STRINGS_H
83
 
    int strcasecmp();
84
 
#  else
85
 
#    include <strings.h>
86
 
#  endif /* NO_STRINGS_H */
87
 
#endif
88
 
 
89
79
#ifndef W_OK
90
80
#  ifdef OPENSSL_SYS_VMS
91
81
#    if defined(__DECC)
248
238
        {
249
239
        ENGINE *e = NULL;
250
240
        char *key=NULL,*passargin=NULL;
 
241
        int create_ser = 0;
251
242
        int free_key = 0;
252
243
        int total=0;
253
244
        int total_done=0;
547
538
 
548
539
        ERR_load_crypto_strings();
549
540
 
550
 
#ifndef OPENSSL_NO_ENGINE
551
 
        e = setup_engine(bio_err, engine, 0);
552
 
#endif
553
 
 
554
541
        /*****************************************************************/
555
542
        tofree=NULL;
556
543
        if (configfile == NULL) configfile = getenv("OPENSSL_CONF");
595
582
        if (!load_config(bio_err, conf))
596
583
                goto err;
597
584
 
 
585
#ifndef OPENSSL_NO_ENGINE
 
586
        e = setup_engine(bio_err, engine, 0);
 
587
#endif
 
588
 
598
589
        /* Lets get the config section we are using */
599
590
        if (section == NULL)
600
591
                {
666
657
                        break;
667
658
                        }
668
659
                }
 
660
        else
 
661
                ERR_clear_error();
669
662
#ifdef RL_DEBUG
670
 
        else
 
663
        if (!p)
671
664
                BIO_printf(bio_err, "DEBUG: unique_subject undefined\n", p);
672
665
#endif
673
666
#ifdef RL_DEBUG
1106
1099
                        goto err;
1107
1100
                        }
1108
1101
 
1109
 
                if ((serial=load_serial(serialfile, 0, NULL)) == NULL)
 
1102
                if ((serial=load_serial(serialfile, create_ser, NULL)) == NULL)
1110
1103
                        {
1111
1104
                        BIO_printf(bio_err,"error while loading serial number\n");
1112
1105
                        goto err;