Skip to content

Commit

Permalink
Merge pull request #677 from SUNET/lundberg_vccs_fix
Browse files Browse the repository at this point in the history
unhexlify already part of hasher.unlock
  • Loading branch information
helylle authored Aug 27, 2024
2 parents 0ea35fb + c41f2a3 commit a98e3c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/eduid/vccs/server/run.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import sys
from asyncio import Lock
from binascii import unhexlify
from typing import Any, Mapping, Optional

from fastapi import FastAPI
Expand All @@ -21,7 +20,7 @@


class VCCS_API(FastAPI):
def __init__(self, test_config: Optional[Mapping[str, Any]] = None):
def __init__(self, test_config: Optional[Mapping[str, Any]] = None) -> None:
print("vccs_api is starting", file=sys.stderr)
super().__init__()

Expand All @@ -34,7 +33,7 @@ def __init__(self, test_config: Optional[Mapping[str, Any]] = None):
name=self.state.config.yhsm_device, lock=yhsm_lock, debug=self.state.config.yhsm_debug
)
if self.state.config.yhsm_unlock_password:
self.state.hasher.unlock(unhexlify(self.state.config.yhsm_unlock_password))
self.state.hasher.unlock(self.state.config.yhsm_unlock_password)

self.state.kdf = ndnkdf.NDNKDF()

Expand Down

0 comments on commit a98e3c8

Please sign in to comment.