#include <gskssl.h> int gsk_secure_soc_write(gsk_handle my_session_handle, char *writeBuffer, int writeBufSize, int *amtWritten);Service Program Name: QSYS/QSOSSLSR
The gsk_secure_soc_write() function is used by a program to write data on a secure session.
No authorization is required.
gsk_secure_soc_write() returns an integer. Possible values are:
gsk_secure_soc_write() was successful.
The handle specified was not valid.
The handle is not in the correct state for this operation.
The readBufSize is less than 1.
Operation would have caused the process to be suspended.
A close() was done on the socket descriptor for this secure session.
The secure session was closed by another thread before the write completed.
The writeBuffer or amtWritten pointer is not valid.
An unexpected error occurred during SSL processing.
A gsk_secure_soc_misc(GSK_CLOSE_NOTIFY) was previously performed on this secure session.
A secure connection using TLSv1.1 or higher protocol has sent or received more than 264-1 SSL records. To prevent this error perform a gsk_secure_soc_misc(GSK_RESET_CIPHER) operation before the record limit is reached. A general guideline would be once a day for long lived secure connections.
An error occurred in SSL processing; check the errno value.
When the gsk_secure_soc_write() API fails with return code [GSK_ERROR_IO], errno can be set to:
Input/output error.
Requested operation requires a connection.
The specified descriptor does not reference a socket.
Broken pipe.
The protocol required to support the specified address family is not available at this time.
Any errno that can be returned by send() can be returned by this API. See Sockets APIs for a description of the errno values it can return.
Message ID | Error Message Text |
---|---|
CPE3418 E | Possible APAR condition or hardware failure. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
CPFA081 E | Unable to set return value or error code. |
Top | UNIX-Type APIs | APIs by category |