Skip to content

Commit ee72ce4

Browse files
runcomclaude
andcommitted
Remove readonly from OID variables to allow multiple sourcing
Remove readonly declaration from OID_PERMIT_* variables to prevent errors when certs.sh is sourced multiple times through different test files (e.g., test-delegate-invalid-chain.sh sources test-delegate-onboarding.sh which sources certs.sh). Simpler solution than using source guards. Fixes CI error: 'OID_PERMIT_REDIRECT: readonly variable' Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 757febf commit ee72ce4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/utils/certs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#! /usr/bin/env bash
22

33
# FDO delegate permission OIDs
4-
readonly OID_PERMIT_REDIRECT="1.3.6.1.4.1.45724.3.1.1"
5-
readonly OID_PERMIT_ONBOARD_NEW_CRED="1.3.6.1.4.1.45724.3.1.2"
6-
readonly OID_PERMIT_ONBOARD_REUSE_CRED="1.3.6.1.4.1.45724.3.1.3"
4+
OID_PERMIT_REDIRECT="1.3.6.1.4.1.45724.3.1.1"
5+
OID_PERMIT_ONBOARD_NEW_CRED="1.3.6.1.4.1.45724.3.1.2"
6+
OID_PERMIT_ONBOARD_REUSE_CRED="1.3.6.1.4.1.45724.3.1.3"
77

88
generate_cert() {
99
local key=$1

0 commit comments

Comments
 (0)