Handle inability to create AFALG socket
authorMatt Caswell <matt@openssl.org>
Wed, 1 Jun 2016 22:15:12 +0000 (23:15 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 13 Jun 2016 16:28:40 +0000 (17:28 +0100)
commit25b9d11c002e5c71840c2a6733c5009d78f2c9db
tree58aa1f4eb04a77bdeb321d37b1a0bd5ae1067ee2
parent74726750ef041ba5fdf0516cbd060a202f7092c1
Handle inability to create AFALG socket

Some Linux platforms have a suitably recent kernel to support AFALG, but
apparently you still can't actually create an afalg socket. This extends
the afalg_chk_platform() function to additionally check whether we can
create an AFALG socket. We also amend the afalgtest to not report a
failure to load the engine as a test failure. A failure to load is almost
certainly due to platform environmental issues, and not an OpenSSL problem.

RT 4434

Reviewed-by: Andy Polyakov <appro@openssl.org>
engines/afalg/e_afalg.c
test/afalgtest.c