chiark / gitweb /
site.c: Cope with failure of transform `setkey' method.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 26 Apr 2017 10:53:05 +0000 (11:53 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 May 2019 00:19:44 +0000 (01:19 +0100)
commit6f0c71c532c29b8900ce4cdd85efcedd020badbd
tree9514bb7b1f2c85d466f1db331beb4f1200eca036
parent781634ba3f3370c006931f55292122d56b230324
site.c: Cope with failure of transform `setkey' method.

The `setkey' method can fail, and indicates this by returning False.
Indeed, the `serpent-cbc256' transform will fail if the shared secret
it's given is too short.

Change `set_new_transform' and its callers to propagate failures
properly.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
site.c