"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/t-cms-parser.c" between
libksba-1.4.0.tar.bz2 and libksba-1.5.0.tar.bz2

About: KSBA is a library to make the tasks of working with X.509 certificates, CMS data and related objects more easy.

t-cms-parser.c  (libksba-1.4.0.tar.bz2):t-cms-parser.c  (libksba-1.5.0.tar.bz2)
skipping to change at line 100 skipping to change at line 100
switch (ksba_cms_identify (r)) switch (ksba_cms_identify (r))
{ {
case KSBA_CT_DATA: s = "data"; break; case KSBA_CT_DATA: s = "data"; break;
case KSBA_CT_SIGNED_DATA: s = "signed data"; break; case KSBA_CT_SIGNED_DATA: s = "signed data"; break;
case KSBA_CT_ENVELOPED_DATA: s = "enveloped data"; break; case KSBA_CT_ENVELOPED_DATA: s = "enveloped data"; break;
case KSBA_CT_DIGESTED_DATA: s = "digested data"; break; case KSBA_CT_DIGESTED_DATA: s = "digested data"; break;
case KSBA_CT_ENCRYPTED_DATA: s = "encrypted data"; break; case KSBA_CT_ENCRYPTED_DATA: s = "encrypted data"; break;
case KSBA_CT_AUTH_DATA: s = "auth data"; break; case KSBA_CT_AUTH_DATA: s = "auth data"; break;
case KSBA_CT_SPC_IND_DATA_CTX:s = "spc indirect data context"; break; case KSBA_CT_SPC_IND_DATA_CTX:s = "spc indirect data context"; break;
case KSBA_CT_OPENPGP_KEYBLOCK:s = "openpgp keyblock"; break;
default: s = "unknown"; break; default: s = "unknown"; break;
} }
if (!quiet) if (!quiet)
printf ("identified as: %s\n", s); printf ("identified as: %s\n", s);
err = ksba_cms_new (&cms); err = ksba_cms_new (&cms);
if (err) if (err)
fail_if_err (err); fail_if_err (err);
err = ksba_cms_set_reader_writer (cms, r, w); err = ksba_cms_set_reader_writer (cms, r, w);
skipping to change at line 285 skipping to change at line 286
{ {
argc--; argv++; argc--; argv++;
} }
if (argc && !strcmp (*argv, "--verbose")) if (argc && !strcmp (*argv, "--verbose"))
{ {
verbose = 1; verbose = 1;
argc--; argv++; argc--; argv++;
} }
if (argc) if (argc)
one_file (argv[0]); {
for (; argc; argc--, argv++)
one_file (*argv);
}
else else
{ {
char *fname = prepend_srcdir ("samples/detached-sig.cms"); static char *testfiles[] =
{
"samples/detached-sig.cms",
"samples/ecdh-sample1.p7m",
"samples/ecdsa-sample1.p7s",
"samples/rsa-sample1.p7m",
"samples/rsa-sample1.p7s",
NULL
};
char *fname;
int idx;
if (!verbose) if (!verbose)
quiet = 1; quiet = 1;
one_file (fname);
free(fname); for (idx=0; testfiles[idx]; idx++)
{
fname = prepend_srcdir (testfiles[idx]);
one_file (fname);
free(fname);
}
} }
/*one_file ("pkcs7-1.ber");*/
/*one_file ("root-cert-2.der"); should fail */ if (!quiet)
printf ("*** all checks done\n");
return 0; return 0;
} }
 End of changes. 5 change blocks. 
6 lines changed or deleted 26 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)