Skip to content

Commit

Permalink
PKCS aws#11 Refactor (aws#2008)
Browse files Browse the repository at this point in the history
* Fixed various MISRA violations.
* Refactored last two remaining functions with a too high GNU Complexity.
  • Loading branch information
lundinc2 authored May 21, 2020
1 parent dd2197b commit 896f879
Show file tree
Hide file tree
Showing 6 changed files with 366 additions and 365 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ CK_RV xDestroyProvidedObjects( CK_SESSION_HANDLE xSession,
pxLabel = ppxPkcsLabels[ uiIndex ];

xResult = xFindObjectWithLabelAndClass( xSession,
( const char * ) pxLabel,
( char * ) pxLabel,
xClass[ uiIndex ],
&xObjectHandle );

Expand All @@ -762,7 +762,7 @@ CK_RV xDestroyProvidedObjects( CK_SESSION_HANDLE xSession,
if( xResult == CKR_OK )
{
xResult = xFindObjectWithLabelAndClass( xSession,
( const char * ) pxLabel,
( char * ) pxLabel,
xClass[ uiIndex ],
&xObjectHandle );
}
Expand Down
Loading

0 comments on commit 896f879

Please sign in to comment.