37 #ifdef USE_CERTIFICATES
58 *destAttributeField = NULL;
60 clAlloc(
"copyAttributeField", \
68 status = copyDN( (
DN_PTR ** ) &newElement->value,
69 srcAttributeField->value );
73 clFree(
"copyAttributeField", newElement );
77 newElement->
next = newElement->
prev = NULL;
78 *destAttributeField = newElement;
119 for( insertPoint = *destListHeadPtr, iterationCount = 0;
120 insertPoint != NULL && \
124 insertPoint = insertPoint->
next, iterationCount++ )
126 prevElement = insertPoint;
128 ENSURES( iterationCount < FAILSAFE_ITERATIONS_LARGE );
129 insertPoint = prevElement;
132 for( iterationCount = 0;
133 srcListPtr != NULL && srcListPtr->
attributeID == attributeID && \
141 status = copyAttributeField( &newAttributeField, srcListPtr );
144 deleteAttributes( (
ATTRIBUTE_PTR ** ) &newAttributeListHead );
157 newAttributeField->fieldID = \
158 CRYPT_CERTINFO_ISSUERALTNAME;
163 CRYPT_CERTINFO_AUTHORITYKEYIDENTIFIER;
165 CRYPT_CERTINFO_AUTHORITY_KEYIDENTIFIER;
173 ( newAttributeField->
fieldID == \
175 newAttributeField->
fieldID == \
177 newAttributeField->
fieldID == \
183 if( newAttributeField->
intValue <= 0 )
185 deleteAttributeField( (
ATTRIBUTE_PTR ** ) &newAttributeField,
186 NULL, newAttributeField, NULL );
195 newAttributeListTail = newAttributeField;
198 srcListPtr = srcListPtr->
next;
200 ENSURES( iterationCount < FAILSAFE_ITERATIONS_LARGE );
201 ENSURES( newAttributeListHead != NULL );
205 newAttributeListHead, newAttributeListTail );
234 if( srcListPtr == NULL )
250 if( destListPtr == NULL )
252 status = copyAttributeField( destListHeadPtr, srcListPtr );
312 if( *destHeadPtr != NULL )
317 for( attributeListCursor = srcListPtr, iterationCount = 0;
318 attributeListCursor != NULL && \
319 !checkAttributeProperty( attributeListCursor,
322 attributeListCursor = attributeListCursor->
next, iterationCount++ )
332 *errorLocus = attributeListCursor->
fieldID;
337 ENSURES( iterationCount < FAILSAFE_ITERATIONS_LARGE );
340 for( ; attributeListCursor != NULL && \
342 attributeListCursor = attributeListCursor->
next, iterationCount++ )
344 ENSURES( checkAttributeProperty( attributeListCursor,
346 if( findAttributeByOID( *destHeadPtr,
347 attributeListCursor->
oid,
357 ENSURES( iterationCount < FAILSAFE_ITERATIONS_LARGE );
362 for( iterationCount = 0;
363 srcListPtr != NULL && \
364 !checkAttributeProperty( srcListPtr,
379 fieldIDToAttribute( ( attributeID >= CRYPT_CERTINFO_FIRST_CMS ) ? \
383 ENSURES( attributeInfoPtr != NULL );
400 srcListPtr != NULL && \
403 srcListPtr = srcListPtr->
next, iterationCount++ );
405 ENSURES( iterationCount < FAILSAFE_ITERATIONS_LARGE );
409 if( srcListPtr != NULL )
414 for( insertPoint = *destHeadPtr, iterationCount = 0;
415 insertPoint != NULL && insertPoint->
next != NULL && \
417 insertPoint = insertPoint->
next, iterationCount++ );
418 ENSURES( iterationCount < FAILSAFE_ITERATIONS_LARGE );
421 for( ; srcListPtr != NULL && \
423 srcListPtr = srcListPtr->
next, iterationCount++ )
428 status = copyAttributeField( &newAttribute, srcListPtr );
432 insertPoint, newAttribute );
435 ENSURES( iterationCount < FAILSAFE_ITERATIONS_LARGE );
481 if( attributeListPtr != NULL && attributeListPtr->
intValue > 0 )
483 #ifdef USE_CERTLEVEL_PKIX_FULL
500 if( srcPermittedSubtrees != NULL && \
509 if( srcExcludedSubtrees != NULL && \
520 if( srcPermittedSubtrees != NULL )
523 srcPermittedSubtrees,
528 if( srcExcludedSubtrees != NULL )
539 status = copyLengthConstraint( (
ATTRIBUTE_LIST ** ) destListHeadPtr,
544 status = copyLengthConstraint( (
ATTRIBUTE_LIST ** ) destListHeadPtr,
556 status = copyLengthConstraint( (
ATTRIBUTE_LIST ** ) destListHeadPtr,
582 if( attributeListPtr != NULL )
589 #ifdef USE_CERTLEVEL_PKIX_PARTIAL
593 if( attributeListPtr != NULL )
616 if( attributeListPtr != NULL && \
649 if( attributeListPtr != NULL )
661 #if defined( USE_CERTVAL ) || defined( USE_CERTREV )
680 if( attributeListPtr != NULL )
681 deleteAttributeField( destListHeadPtr, NULL, attributeListPtr, NULL );
689 if( attributeListPtr != NULL )
708 return( copyRTCSRequestAttributes( destListHeadPtr, srcListPtr ) );
729 if( attributeListPtr != NULL )
738 if( attributeListPtr != NULL )