#include <oskit/flask/security.h>OSKIT_COMDECL oskit_security_port_sid(oskit_security_t *security, oskit_u16_t domain, oskit_u16_t type, oskit_u8_t protocol, oskit_u16_t port, [out] oskit_security_id_t *sid);
The oskit_security_port_sid function returns the SID to use for the port number port in the protocol specified by the triple (domain, type, protocol).
- security
- The security server.
- domain
- The communications domain/address family.
- type
- The socket type.
- protocol
- The protocol.
- port
- The port number.
- sid
- The SID of the port number.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.