crypto-tests.c revision 69aaef8719c5cf33ed1c4090fa313ba281bf8a02
/*
SSSD
Crypto tests
Author: Jakub Hrozek <jhrozek@redhat.com>
Copyright (C) Red Hat, Inc 2010
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <popt.h>
#include <check.h>
/* interfaces under test */
#include "util/crypto/sss_crypto.h"
#include "util/crypto/nss/nss_util.h"
#ifdef HAVE_NSS
{
int ret;
ret = nspr_nss_init();
ret = nspr_nss_cleanup();
}
#endif
{
"12345678901234567", /* just above blocksize */
"", /* empty */
NULL}; /* sentinel */
int i;
char *obfpwd;
char *ctpwd;
int ret;
for (i=0; password[i]; i++) {
}
}
Suite *crypto_suite(void)
{
/* Do some testing */
#ifdef HAVE_NSS
#endif
/* Add all test cases to the test suite */
suite_add_tcase(s, tc);
return s;
}
{
int opt;
int number_failed;
int debug;
struct poptOption long_options[] = {
};
switch(opt) {
default:
return 1;
}
}
debug_level = debug;
Suite *s = crypto_suite();
}