summaryrefslogtreecommitdiff
path: root/mock-variables.c
diff options
context:
space:
mode:
authorDan Nicholson <dbn@endlessos.org>2024-10-02 18:05:43 -0600
committerPeter Jones <pjones@redhat.com>2025-01-15 16:03:55 -0500
commitef8e729515bba6c517736981d750423122c237d8 (patch)
treea0e133ee193bfaf599a480d8418fbad068fb95cb /mock-variables.c
parent6410312603ac1198c40b5d103b4aaf2ec2f1c5ac (diff)
downloadefi-boot-shim-ef8e729515bba6c517736981d750423122c237d8.tar.gz
efi-boot-shim-ef8e729515bba6c517736981d750423122c237d8.zip
httpboot: Convert HTTP status codes to EFI status codes
This allows the caller to make a more informed decision about how to handle the error. In particular, by mapping HTTP errors to EFI_INVALID_PARAMETER and EFI_NOT_FOUND, shim will try to fetch the default second stage image like it does when loading images from disk. Note that this also changes the default to return EFI_HTTP_ERROR instead of EFI_ABORTED. This should not change any behavior as EFI_ABORTED wasn't being handled before, but letting the caller decide what to do with an unknown HTTP error is more appropriate. Signed-off-by: Dan Nicholson <dbn@endlessos.org>
Diffstat (limited to 'mock-variables.c')
0 files changed, 0 insertions, 0 deletions