xref: /netbsd-src/crypto/external/cpl/trousers/dist/src/include/tsp_tcsi_param.h (revision 1023804e3833a0bd94414f2545512128f6502c74)
1 
2 /*
3  * Licensed Materials - Property of IBM
4  *
5  * trousers - An open source TCG Software Stack
6  *
7  * (C) Copyright International Business Machines Corp. 2005, 2007, 2013
8  *
9  */
10 
11 /* Defines which environment var is responsible for setting the port to
12  * which the client will connect */
13 #define PORT_ENV_VAR "TSS_TCSD_PORT"
14 
15 /* Defines which envionment var is responsible for setting the hostname to
16  * which the client will connect */
17 #define HOSTNAME_ENV_VAR "TSS_TCSD_HOSTNAME"
18 
19 #define TCP_PORT_STR_MAX_LEN 6
20 
21 /* Prototypes for functions which retrieve tcsd hostname and port
22  * information */
23 TSS_RESULT
24 get_tcsd_port(char port_str[TCP_PORT_STR_MAX_LEN]);
25 
26 TSS_RESULT
27 get_tcsd_hostname(char **host_str, unsigned *len);
28