When compiling with SWIG in C++ mode (workgen project), then WT_CRYPT_KEYS produces a warning:
.../build/include/wiredtiger.h:5780: Warning 312: Nested union not currently supported (ignored).
This problem can be solved by using %feature("flatnested") SWIG feature. It generates a non-nested proxy class in the target language.