Commit a6fe89e1 authored by Bernard Quatermass's avatar Bernard Quatermass

small tidy up

parent adab1ef0
......@@ -15,12 +15,10 @@ clica: ${OBJ_FILES}
clean::
@rm -rf clica ${OBJ_FILES} debugfiles.list debuglinks.list debugsources.list
testK2::
@rm -rf K2/
./clica --initialise --directory K2 --domain example.com --password password
test::
./test.sh TEST
testK2idn::
@rm -rf K2/
./clica --initialise --directory K2 --domain éxample.com --password password
testidn::
./test.sh TEST éxample.com
......@@ -134,15 +134,11 @@ init_key_usage_for_ccu( unsigned char *cp, SECItem *bsv, int ccu )
static void
init_basic_constraints_for_ccu( CERTBasicConstraints *consp, int ccu, int path_length )
{
fprintf( stderr, "init_basic_constraints_for_ccu: entry\n" );
switch( ccu )
{
case CLICA_CERT_USAGE_CA :
fprintf( stderr, "init_basic_constraints_for_ccu: XXXX\n" );
consp->pathLenConstraint = CERT_UNLIMITED_PATH_CONSTRAINT;
fprintf( stderr, "init_basic_constraints_for_ccu: XXXX\n" );
consp->isCA = PR_TRUE;
fprintf( stderr, "init_basic_constraints_for_ccu: XXXX\n" );
break;
case CLICA_CERT_USAGE_SUBCA :
consp->pathLenConstraint = path_length;
......
#!/bin/bash
TESTDIR=${1:-TESTDIR}
EXDOMAIN=${2:-example.com}
[ -x ./clica ] || exit No clica binary
[ ! -d "$TESTDIR" ] || rm -rf "$TESTDIR"
./clica --initialise --directory "$TESTDIR" --domain "$EXDOMAIN" --password password
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment