diff --git a/ra-tls/sgx-ra-tls/ra_tls_options.c.sh b/ra-tls/sgx-ra-tls/ra_tls_options.c.sh index 1000571ef697ac6774c5b2c33ed951842c3616ec..382ecc4ea8ddca25ddbee0acc45acaa54b7ddfdf 100755 --- a/ra-tls/sgx-ra-tls/ra_tls_options.c.sh +++ b/ra-tls/sgx-ra-tls/ra_tls_options.c.sh @@ -16,7 +16,7 @@ if ( [[ "$QUOTE_TYPE" != "SGX_LINKABLE_SIGNATURE" ]] ) && \ echo "//QUOTE_TYPE must be one of SGX_UNLINKABLE_SIGNATURE or SGX_LINKABLE_SIGNATURE" fi -SPID_BYTE_ARRAY=$(echo $SPID | python -c 'import sys ; s = sys.stdin.readline().strip(); print("".join(["0x"+s[2*i:2*i+2]+"," for i in range(len(s)/2)]))') +SPID_BYTE_ARRAY=$(echo $SPID | python -c 'import sys ; s = sys.stdin.readline().strip(); print("".join(["0x"+s[2*i:2*i+2]+"," for i in range(int(len(s)/2))]))') cat <