BAN-AI-Communications/k95-mingw

View on GitHub
openssl-0.9.7/apps/pkcs12.c

Summary

Maintainability
Test Coverage
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* pkcs12.c */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#if !defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_SHA1)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* project 1999.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*/
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* ====================================================================
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* Redistribution and use in source and binary forms, with or without
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* modification, are permitted provided that the following conditions
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* are met:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* 1. Redistributions of source code must retain the above copyright
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* notice, this list of conditions and the following disclaimer.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* 2. Redistributions in binary form must reproduce the above copyright
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* notice, this list of conditions and the following disclaimer in
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* the documentation and/or other materials provided with the
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* distribution.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* 3. All advertising materials mentioning features or use of this
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* software must display the following acknowledgment:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* "This product includes software developed by the OpenSSL Project
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* endorse or promote products derived from this software without
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* prior written permission. For written permission, please contact
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* licensing@OpenSSL.org.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* 5. Products derived from this software may not be called "OpenSSL"
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* nor may "OpenSSL" appear in their names without prior written
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* permission of the OpenSSL Project.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* 6. Redistributions of any form whatsoever must retain the following
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* acknowledgment:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* "This product includes software developed by the OpenSSL Project
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* OF THE POSSIBILITY OF SUCH DAMAGE.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* ====================================================================
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* This product includes cryptographic software written by Eric Young
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* (eay@cryptsoft.com). This product includes software written by Tim
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* Hudson (tjh@cryptsoft.com).
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*/
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#include <stdio.h>
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#include <stdlib.h>
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#include <string.h>
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#include "apps.h"
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#include <openssl/crypto.h>
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#include <openssl/err.h>
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#include <openssl/pem.h>
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#include <openssl/pkcs12.h>
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#define PROG pkcs12_main
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
const EVP_CIPHER *enc;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#define NOKEYS 0x1
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#define NOCERTS 0x2
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#define INFO 0x4
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#define CLCERTS 0x8
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#define CACERTS 0x10
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int get_cert_chain (X509 *cert, X509_STORE *store, STACK_OF(X509) **chain);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int dump_certs_keys_p12(BIO *out, PKCS12 *p12, char *pass, int passlen, int options, char *pempass);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int dump_certs_pkeys_bags(BIO *out, STACK_OF(PKCS12_SAFEBAG) *bags, char *pass,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int passlen, int options, char *pempass);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int dump_certs_pkeys_bag(BIO *out, PKCS12_SAFEBAG *bags, char *pass, int passlen, int options, char *pempass);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int print_attribs(BIO *out, STACK_OF(X509_ATTRIBUTE) *attrlst, char *name);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
void hex_prin(BIO *out, unsigned char *buf, int len);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int alg_print(BIO *x, X509_ALGOR *alg);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int cert_load(BIO *in, STACK_OF(X509) *sk);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int MAIN(int, char **);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int MAIN(int argc, char **argv)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ENGINE *e = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *infile=NULL, *outfile=NULL, *keyname = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *certfile=NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO *in=NULL, *out = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char **args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *name = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *csp_name = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS12 *p12 = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char pass[50], macpass[50];
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int export_cert = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int options = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int chain = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int badarg = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int iter = PKCS12_DEFAULT_ITER;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int maciter = PKCS12_DEFAULT_ITER;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int twopass = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int keytype = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int cert_pbe = NID_pbe_WithSHA1And40BitRC2_CBC;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int key_pbe = NID_pbe_WithSHA1And3_Key_TripleDES_CBC;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int ret = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int macver = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int noprompt = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
STACK *canames = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *cpass = NULL, *mpass = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *passargin = NULL, *passargout = NULL, *passarg = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *passin = NULL, *passout = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *inrand = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *CApath = NULL, *CAfile = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *engine=NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
apps_startup();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
enc = EVP_des_ede3_cbc();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (bio_err == NULL ) bio_err = BIO_new_fp (stderr, BIO_NOCLOSE);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!load_config(bio_err, NULL))
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args = argv + 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
while (*args) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (*args[0] == '-') {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!strcmp (*args, "-nokeys")) options |= NOKEYS;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-keyex")) keytype = KEY_EX;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-keysig")) keytype = KEY_SIG;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-nocerts")) options |= NOCERTS;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-clcerts")) options |= CLCERTS;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-cacerts")) options |= CACERTS;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-noout")) options |= (NOKEYS|NOCERTS);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-info")) options |= INFO;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-chain")) chain = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-twopass")) twopass = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-nomacver")) macver = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-descert"))
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
cert_pbe = NID_pbe_WithSHA1And3_Key_TripleDES_CBC;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-export")) export_cert = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-des")) enc=EVP_des_cbc();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifndef OPENSSL_NO_IDEA
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-idea")) enc=EVP_idea_cbc();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-des3")) enc = EVP_des_ede3_cbc();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifndef OPENSSL_NO_AES
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp(*args,"-aes128")) enc=EVP_aes_128_cbc();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp(*args,"-aes192")) enc=EVP_aes_192_cbc();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp(*args,"-aes256")) enc=EVP_aes_256_cbc();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-noiter")) iter = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-maciter"))
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
maciter = PKCS12_DEFAULT_ITER;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-nomaciter"))
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
maciter = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-nodes")) enc=NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else if (!strcmp (*args, "-certpbe")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
cert_pbe=OBJ_txt2nid(*args);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(cert_pbe == NID_undef) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
"Unknown PBE algorithm %s\n", *args);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp (*args, "-keypbe")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
key_pbe=OBJ_txt2nid(*args);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(key_pbe == NID_undef) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
"Unknown PBE algorithm %s\n", *args);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp (*args, "-rand")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
inrand = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp (*args, "-inkey")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
keyname = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp (*args, "-certfile")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
certfile = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp (*args, "-name")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
name = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp (*args, "-CSP")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
csp_name = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp (*args, "-caname")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!canames) canames = sk_new_null();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_push(canames, *args);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp (*args, "-in")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
infile = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp (*args, "-out")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
outfile = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp(*args,"-passin")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
passargin = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp(*args,"-passout")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
passargout = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp (*args, "-password")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
passarg = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
noprompt = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp(*args,"-CApath")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CApath = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp(*args,"-CAfile")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CAfile = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!strcmp(*args,"-engine")) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (args[1]) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
engine = *args;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else badarg = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
args++;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (badarg) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "Usage: pkcs12 [options]\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "where options are\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-export output PKCS12 file\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-chain add certificate chain\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-inkey file private key if not infile\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-certfile f add all certs in f\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-CApath arg - PEM format directory of CA's\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-CAfile arg - PEM format file of CA's\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-name \"name\" use name as friendly name\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-caname \"nm\" use nm as CA friendly name (can be used more than once).\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-in infile input filename\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-out outfile output filename\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-noout don't output anything, just verify.\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-nomacver don't verify MAC.\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-nocerts don't output certificates.\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-clcerts only output client certificates.\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-cacerts only output CA certificates.\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-nokeys don't output private keys.\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-info give info about PKCS#12 structure.\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-des encrypt private keys with DES\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-des3 encrypt private keys with triple DES (default)\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifndef OPENSSL_NO_IDEA
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-idea encrypt private keys with idea\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifndef OPENSSL_NO_AES
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-aes128, -aes192, -aes256\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, " encrypt PEM output with cbc aes\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-nodes don't encrypt private keys\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-noiter don't use encryption iteration\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-maciter use MAC iteration\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-twopass separate MAC, encryption passwords\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-descert encrypt PKCS#12 certificates with triple DES (default RC2-40)\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-certpbe alg specify certificate PBE algorithm (default RC2-40)\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-keypbe alg specify private key PBE algorithm (default 3DES)\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-keyex set MS key exchange type\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-keysig set MS key signature type\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-password p set import/export password source\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-passin p input file pass phrase source\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-passout p output file pass phrase source\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "-engine e use engine e, possibly a hardware device.\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, " the random number generator\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
e = setup_engine(bio_err, engine, 0);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(passarg) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(export_cert) passargout = passarg;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else passargin = passarg;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, "Error getting passwords\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!cpass) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(export_cert) cpass = passout;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else cpass = passin;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(cpass) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
mpass = cpass;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
noprompt = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
cpass = pass;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
mpass = macpass;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(export_cert || inrand) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
app_RAND_load_file(NULL, bio_err, (inrand != NULL));
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (inrand != NULL)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err,"%ld semi-random bytes loaded\n",
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
app_RAND_load_files(inrand));
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ERR_load_crypto_strings();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("read files");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!infile) in = BIO_new_fp(stdin, BIO_NOCLOSE);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
else in = BIO_new_file(infile, "rb");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!in) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, "Error opening input file %s\n",
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
infile ? infile : "<stdin>");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
perror (infile);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#if 0
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (certfile) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!(certsin = BIO_new_file(certfile, "r"))) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, "Can't open certificate file %s\n", certfile);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
perror (certfile);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (keyname) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!(inkey = BIO_new_file(keyname, "r"))) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, "Can't key certificate file %s\n", keyname);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
perror (keyname);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("write files");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!outfile) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
out = BIO_new_fp(stdout, BIO_NOCLOSE);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef OPENSSL_SYS_VMS
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO *tmpbio = BIO_new(BIO_f_linebuffer());
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
out = BIO_push(tmpbio, out);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else out = BIO_new_file(outfile, "wb");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!out) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, "Error opening output file %s\n",
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
outfile ? outfile : "<stdout>");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
perror (outfile);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (twopass) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("read MAC password");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(EVP_read_pw_string (macpass, sizeof macpass, "Enter MAC Password:", export_cert))
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "Can't read Password\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (export_cert) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
EVP_PKEY *key = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
STACK_OF(PKCS12_SAFEBAG) *bags = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
STACK_OF(PKCS7) *safes = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS12_SAFEBAG *bag = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS8_PRIV_KEY_INFO *p8 = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS7 *authsafe = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509 *ucert = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
STACK_OF(X509) *certs=NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *catmp = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int i;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
unsigned char keyid[EVP_MAX_MD_SIZE];
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
unsigned int keyidlen = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("process -export_cert");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("reading private key");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
key = load_key(bio_err, keyname ? keyname : infile, FORMAT_PEM, 1,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
passin, e, "private key");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!key) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto export_end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("reading certs from input");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Load in all certs in input file */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!(certs = load_certs(bio_err, infile, FORMAT_PEM, NULL, e,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
"certificates"))) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto export_end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("reading certs from input 2");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
for(i = 0; i < sk_X509_num(certs); i++) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ucert = sk_X509_value(certs, i);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(X509_check_private_key(ucert, key)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_digest(ucert, EVP_sha1(), keyid, &keyidlen);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
break;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!keyidlen) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ucert = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, "No certificate matches private key\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto export_end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("reading certs from certfile");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
bags = sk_PKCS12_SAFEBAG_new_null ();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Add any more certificates asked for */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (certfile) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
STACK_OF(X509) *morecerts=NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!(morecerts = load_certs(bio_err, certfile, FORMAT_PEM,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
NULL, e,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
"certificates from certfile"))) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto export_end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
while(sk_X509_num(morecerts) > 0) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_X509_push(certs, sk_X509_shift(morecerts));
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_X509_free(morecerts);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("building chain");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* If chaining get chain from user cert */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (chain) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int vret;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
STACK_OF(X509) *chain2;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_STORE *store = X509_STORE_new();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!store)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "Memory allocation error\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto export_end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!X509_STORE_load_locations(store, CAfile, CApath))
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_STORE_set_default_paths (store);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
vret = get_cert_chain (ucert, store, &chain2);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_STORE_free(store);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!vret) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Exclude verified certificate */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
for (i = 1; i < sk_X509_num (chain2) ; i++)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_X509_push(certs, sk_X509_value (chain2, i));
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Free first certificate */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_free(sk_X509_value(chain2, 0));
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_X509_free(chain2);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "Error %s getting chain.\n",
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_verify_cert_error_string(vret));
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto export_end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("building bags");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* We now have loads of certificates: include them all */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
for(i = 0; i < sk_X509_num(certs); i++) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509 *cert = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
cert = sk_X509_value(certs, i);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
bag = PKCS12_x5092certbag(cert);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* If it matches private key set id */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(cert == ucert) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(name) PKCS12_add_friendlyname(bag, name, -1);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS12_add_localkeyid(bag, keyid, keyidlen);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if((catmp = sk_shift(canames)))
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS12_add_friendlyname(bag, catmp, -1);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS12_SAFEBAG_push(bags, bag);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_X509_pop_free(certs, X509_free);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
certs = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("encrypting bags");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!noprompt &&
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
EVP_read_pw_string(pass, sizeof pass, "Enter Export Password:", 1)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "Can't read Password\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto export_end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!twopass) strcpy(macpass, pass);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Turn certbags into encrypted authsafe */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
authsafe = PKCS12_pack_p7encdata(cert_pbe, cpass, -1, NULL, 0,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
iter, bags);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
bags = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!authsafe) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ERR_print_errors (bio_err);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto export_end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
safes = sk_PKCS7_new_null ();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS7_push (safes, authsafe);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("building shrouded key bag");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Make a shrouded key bag */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
p8 = EVP_PKEY2PKCS8 (key);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(keytype) PKCS8_add_keyusage(p8, keytype);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
bag = PKCS12_MAKE_SHKEYBAG(key_pbe, cpass, -1, NULL, 0, iter, p8);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS8_PRIV_KEY_INFO_free(p8);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
p8 = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (name) PKCS12_add_friendlyname (bag, name, -1);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(csp_name) PKCS12_add_CSPName_asc(bag, csp_name, -1);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS12_add_localkeyid (bag, keyid, keyidlen);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
bags = sk_PKCS12_SAFEBAG_new_null();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS12_SAFEBAG_push (bags, bag);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("encrypting shrouded key bag");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Turn it into unencrypted safe bag */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
authsafe = PKCS12_pack_p7data (bags);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
bags = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS7_push (safes, authsafe);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("building pkcs12");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
p12 = PKCS12_init(NID_pkcs7_data);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS12_pack_authsafes(p12, safes);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS7_pop_free(safes, PKCS7_free);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
safes = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS12_set_mac (p12, mpass, -1, NULL, 0, maciter, NULL);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("writing pkcs12");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
i2d_PKCS12_bio (out, p12);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ret = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
export_end:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("process -export_cert: freeing");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (key) EVP_PKEY_free(key);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (certs) sk_X509_pop_free(certs, X509_free);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (safes) sk_PKCS7_pop_free(safes, PKCS7_free);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (bags) sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!(p12 = d2i_PKCS12_bio (in, NULL))) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ERR_print_errors(bio_err);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("read import password");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!noprompt && EVP_read_pw_string(pass, sizeof pass, "Enter Import Password:", 0)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "Can't read Password\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!twopass) strcpy(macpass, pass);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & INFO) BIO_printf (bio_err, "MAC Iteration %ld\n", p12->mac->iter ? ASN1_INTEGER_get (p12->mac->iter) : 1);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(macver) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("verify MAC");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* If we enter empty password try no password first */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!macpass[0] && PKCS12_verify_mac(p12, NULL, 0)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* If mac and crypto pass the same set it to NULL too */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!twopass) cpass = NULL;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (!PKCS12_verify_mac(p12, mpass, -1)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "Mac verify error: invalid password?\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ERR_print_errors (bio_err);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "MAC verified OK\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("output keys and certificates");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!dump_certs_keys_p12 (out, p12, cpass, -1, options, passout)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, "Error outputting keys and certificates\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ERR_print_errors (bio_err);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto end;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ret = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
end:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (p12) PKCS12_free(p12);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(export_cert || inrand) app_RAND_write_file(NULL, bio_err);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_remove_all_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_free(in);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_free_all(out);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (canames) sk_free(canames);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(passin) OPENSSL_free(passin);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(passout) OPENSSL_free(passout);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
apps_shutdown();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
OPENSSL_EXIT(ret);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int dump_certs_keys_p12 (BIO *out, PKCS12 *p12, char *pass,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int passlen, int options, char *pempass)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
STACK_OF(PKCS7) *asafes;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
STACK_OF(PKCS12_SAFEBAG) *bags;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int i, bagnid;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS7 *p7;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!( asafes = PKCS12_unpack_authsafes(p12))) return 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
for (i = 0; i < sk_PKCS7_num (asafes); i++) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
p7 = sk_PKCS7_value (asafes, i);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
bagnid = OBJ_obj2nid (p7->type);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (bagnid == NID_pkcs7_data) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
bags = PKCS12_unpack_p7data(p7);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & INFO) BIO_printf (bio_err, "PKCS7 Data\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (bagnid == NID_pkcs7_encrypted) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & INFO) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(bio_err, "PKCS7 Encrypted data: ");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
alg_print(bio_err,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
p7->d.encrypted->enc_data->algorithm);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
bags = PKCS12_unpack_p7encdata(p7, pass, passlen);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else continue;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!bags) return 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!dump_certs_pkeys_bags (out, bags, pass, passlen,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
options, pempass)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS12_SAFEBAG_pop_free (bags, PKCS12_SAFEBAG_free);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS12_SAFEBAG_pop_free (bags, PKCS12_SAFEBAG_free);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS7_pop_free (asafes, PKCS7_free);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int dump_certs_pkeys_bags (BIO *out, STACK_OF(PKCS12_SAFEBAG) *bags,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *pass, int passlen, int options, char *pempass)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int i;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
for (i = 0; i < sk_PKCS12_SAFEBAG_num (bags); i++) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!dump_certs_pkeys_bag (out,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_PKCS12_SAFEBAG_value (bags, i),
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
pass, passlen,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
options, pempass))
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int dump_certs_pkeys_bag (BIO *out, PKCS12_SAFEBAG *bag, char *pass,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int passlen, int options, char *pempass)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
EVP_PKEY *pkey;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS8_PRIV_KEY_INFO *p8;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509 *x509;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
switch (M_PKCS12_bag_type(bag))
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
case NID_keyBag:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & INFO) BIO_printf (bio_err, "Key bag\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & NOKEYS) return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
print_attribs (out, bag->attrib, "Bag Attributes");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
p8 = bag->value.keybag;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!(pkey = EVP_PKCS82PKEY (p8))) return 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
print_attribs (out, p8->attributes, "Key Attributes");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PEM_write_bio_PrivateKey (out, pkey, enc, NULL, 0, NULL, pempass);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
EVP_PKEY_free(pkey);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
break;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
case NID_pkcs8ShroudedKeyBag:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & INFO) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "Shrouded Keybag: ");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
alg_print (bio_err, bag->value.shkeybag->algor);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & NOKEYS) return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
print_attribs (out, bag->attrib, "Bag Attributes");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!(p8 = PKCS12_decrypt_skey(bag, pass, passlen)))
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!(pkey = EVP_PKCS82PKEY (p8))) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS8_PRIV_KEY_INFO_free(p8);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
print_attribs (out, p8->attributes, "Key Attributes");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PKCS8_PRIV_KEY_INFO_free(p8);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PEM_write_bio_PrivateKey (out, pkey, enc, NULL, 0, NULL, pempass);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
EVP_PKEY_free(pkey);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
break;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
case NID_certBag:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & INFO) BIO_printf (bio_err, "Certificate bag\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & NOCERTS) return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (PKCS12_get_attr(bag, NID_localKeyID)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & CACERTS) return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else if (options & CLCERTS) return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
print_attribs (out, bag->attrib, "Bag Attributes");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (M_PKCS12_cert_bag_type(bag) != NID_x509Certificate )
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (!(x509 = PKCS12_certbag2x509(bag))) return 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
dump_cert_text (out, x509);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PEM_write_bio_X509 (out, x509);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_free(x509);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
break;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
case NID_safeContentsBag:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (options & INFO) BIO_printf (bio_err, "Safe Contents bag\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
print_attribs (out, bag->attrib, "Bag Attributes");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return dump_certs_pkeys_bags (out, bag->value.safes, pass,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
passlen, options, pempass);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
default:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "Warning unsupported bag type: ");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
i2a_ASN1_OBJECT (bio_err, bag->type);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
break;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Given a single certificate return a verified chain or NULL if error */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Hope this is OK .... */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int get_cert_chain (X509 *cert, X509_STORE *store, STACK_OF(X509) **chain)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_STORE_CTX store_ctx;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
STACK_OF(X509) *chn;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int i;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* FIXME: Should really check the return status of X509_STORE_CTX_init
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* for an error, but how that fits into the return value of this
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
* function is less obvious. */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_STORE_CTX_init(&store_ctx, store, cert, NULL);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if (X509_verify_cert(&store_ctx) <= 0) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
i = X509_STORE_CTX_get_error (&store_ctx);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
goto err;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
chn = X509_STORE_CTX_get1_chain(&store_ctx);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
i = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
*chain = chn;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
err:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_STORE_CTX_cleanup(&store_ctx);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return i;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int alg_print (BIO *x, X509_ALGOR *alg)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PBEPARAM *pbe;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
unsigned char *p;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
p = alg->parameter->value.sequence->data;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
pbe = d2i_PBEPARAM (NULL, &p, alg->parameter->value.sequence->length);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf (bio_err, "%s, Iteration %d\n",
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
OBJ_nid2ln(OBJ_obj2nid(alg->algorithm)), ASN1_INTEGER_get(pbe->iter));
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
PBEPARAM_free (pbe);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Load all certificates from a given file */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int cert_load(BIO *in, STACK_OF(X509) *sk)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int ret;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509 *cert;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ret = 0;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("cert_load(): reading one cert");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
while((cert = PEM_read_bio_X509(in, NULL, NULL, NULL))) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ret = 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
sk_X509_push(sk, cert);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_push_info("cert_load(): reading one cert");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#ifdef CRYPTO_MDEBUG
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
CRYPTO_pop_info();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(ret) ERR_clear_error();
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return ret;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
/* Generalised attribute print: handle PKCS#8 and bag attributes */
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int print_attribs (BIO *out, STACK_OF(X509_ATTRIBUTE) *attrlst, char *name)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
X509_ATTRIBUTE *attr;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
ASN1_TYPE *av;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
char *value;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int i, attr_nid;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!attrlst) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(out, "%s: <No Attributes>\n", name);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(!sk_X509_ATTRIBUTE_num(attrlst)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(out, "%s: <Empty Attributes>\n", name);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(out, "%s\n", name);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
for(i = 0; i < sk_X509_ATTRIBUTE_num(attrlst); i++) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
attr = sk_X509_ATTRIBUTE_value(attrlst, i);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
attr_nid = OBJ_obj2nid(attr->object);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(out, " ");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(attr_nid == NID_undef) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
i2a_ASN1_OBJECT (out, attr->object);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(out, ": ");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else BIO_printf(out, "%s: ", OBJ_nid2ln(attr_nid));
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
if(sk_ASN1_TYPE_num(attr->value.set)) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
av = sk_ASN1_TYPE_value(attr->value.set, 0);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
switch(av->type) {
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
case V_ASN1_BMPSTRING:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
value = uni2asc(av->value.bmpstring->data,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
av->value.bmpstring->length);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(out, "%s\n", value);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
OPENSSL_free(value);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
break;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
case V_ASN1_OCTET_STRING:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
hex_prin(out, av->value.octet_string->data,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
av->value.octet_string->length);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(out, "\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
break;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
case V_ASN1_BIT_STRING:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
hex_prin(out, av->value.bit_string->data,
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
av->value.bit_string->length);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(out, "\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
break;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
default:
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
BIO_printf(out, "<Unsupported tag %d>\n", av->type);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
break;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
} else BIO_printf(out, "<No Values>\n");
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
return 1;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
void hex_prin(BIO *out, unsigned char *buf, int len)
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
{
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
int i;
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
for (i = 0; i < len; i++) BIO_printf (out, "%02X ", buf[i]);
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
}
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
 
Too many #ifdef configurations - cppcheck only checks 12 of 13 configurations. Use --force to check all configurations.
#endif