Skip to content
Snippets Groups Projects
Commit d5341b53 authored by deuce's avatar deuce
Browse files

Remove debug code from patch.

parent d185b7f3
Branches
Tags
No related merge requests found
diff -ur ../cl.patched/cryptapi.c ./cryptapi.c
--- ../cl.patched/cryptapi.c 2014-06-20 12:40:45.000000000 -0700
+++ ./cryptapi.c 2014-06-20 19:11:53.000000000 -0700
@@ -1060,6 +1060,7 @@
}
else
{
+fprintf(stderr, "That's weird\n");
if( cmd->strArgLen[ 0 ] < 1 || \
cmd->strArgLen[ 0 ] >= MAX_ATTRIBUTE_SIZE )
return( CRYPT_ARGERROR_NUM2 );
@@ -1079,6 +1080,7 @@
( MESSAGE_CAST ) &cmd->arg[ 2 ],
cmd->arg[ 1 ] ) );
}
+fprintf(stderr, "First one\n");
return( krnlSendMessage( cmd->arg[ 0 ], MESSAGE_SETATTRIBUTE,
( MESSAGE_CAST ) &cmd->arg[ 2 ], cmd->arg[ 1 ] ) );
}
@@ -1089,6 +1091,7 @@
IMESSAGE_SETATTRIBUTE_S, &msgData,
cmd->arg[ 1 ] ) );
}
+fprintf(stderr, "Last one\n");
return( krnlSendMessage( cmd->arg[ 0 ], MESSAGE_SETATTRIBUTE_S,
&msgData, cmd->arg[ 1 ] ) );
}
@@ -2558,9 +2561,11 @@
/* Perform basic client-side error checking */
if( !isHandleRangeValid( cryptHandle ) && cryptHandle != CRYPT_UNUSED )
return( CRYPT_ERROR_PARAM1 );
+fprintf(stderr, "Checking\n");
if( attributeType <= CRYPT_ATTRIBUTE_NONE || \
attributeType >= CRYPT_ATTRIBUTE_LAST )
return( CRYPT_ERROR_PARAM2 );
+fprintf(stderr, "Good\n");
if( !isReadPtrConst( value, 1 ) )
return( CRYPT_ERROR_PARAM3 );
if( attributeType == CRYPT_CTXINFO_KEY_COMPONENTS )
@@ -2671,6 +2676,7 @@
cmd.strArg[ 0 ] = ( void * ) value;
cmd.strArgLen[ 0 ] = length;
status = DISPATCH_COMMAND( cmdSetAttribute, cmd );
+fprintf(stderr, "Dispatched return: %d\n", status);
if( cryptStatusOK( status ) )
return( CRYPT_OK );
return( mapError( errorMap, FAILSAFE_ARRAYSIZE( errorMap, ERRORMAP ),
diff -ur ../cl.patched/cryptlib.h ./cryptlib.h
--- ../cl.patched/cryptlib.h 2014-06-20 12:40:45.000000000 -0700
+++ ./cryptlib.h 2014-06-20 12:47:00.000000000 -0700
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment