test-tool: add iSCSICHAP.Base64 test
Some targets such as LIO support base64 encoded CHAP_R values. Test this by intercepting hex-encoded CHAP_R responses and converting the value to base64. This will fail on targets which don't support base64; we should probably skip the test instead. base64 encoding is performed using the gnutls_base64_encode2() function, so the test is only present for gnutls-enabled builds. Signed-off-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
@@ -244,4 +244,8 @@ iscsi_test_cu_SOURCES = iscsi-test-cu.c \
|
||||
test_async_lu_reset_simple.c \
|
||||
test_write_residuals.c
|
||||
|
||||
if TEST_CHAP_BASE64
|
||||
iscsi_test_cu_SOURCES += test_iscsi_chap_base64.c
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user