Hello Dmitry, the length of the INOUT buffer (buf) is limited by argument 6 (Size) of the SQLDBC_PreparedStatement_bindParameterAddr function. Set this to sizeof(buf) and the argument 5 (LengthIndicator) to the actual input length of buf and your program will work.
>rc = SQLDBC_PreparedStatement_bindParameterAddr(stmt, 1, >SQLDBC_HOSTTYPE_ASCII, addr, &b, strlen(buf), SQLDBC_FALSE); b = strlen(buf); rc = SQLDBC_PreparedStatement_bindParameterAddr(stmt, 1, SQLDBC_HOSTTYPE_ASCII, addr, &b, sizeof(buf), SQLDBC_FALSE); Regards, Burkhard
smime.p7s
Description: S/MIME cryptographic signature
