r17171: Add a gensec function to determine the maximum negotiated buffer size,