-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove optional block PB when adding new optional blocks
Let tr31_opt_block_alloc() remove all instances of optional block PB when adding a new optional block. ANSI X9.143:2021, 6.3.6, states that the padding block will always be the last optional block in the header. Therefore, if optional block PB was previously added for whatever reason, for example via an export header by tr31-tool, it should be removed before adding further optional blocks. However, if no further optional blocks are added, an existing optional block PB is intentionally preserved specifically to allow the caller, or tr31-tool using an export header, to specify exact content for optional block PB.
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters