Lines Matching refs:lstate

1055 	register int lstate = 0;  in encrypt_is()  local
1087 lstate = encr_data.decrypt.state; in encrypt_is()
1091 lstate); in encrypt_is()
1102 lstate = ENCR_STATE_NOT_READY; in encrypt_is()
1107 lstate = ENCR_STATE_IN_PROGRESS; in encrypt_is()
1112 lstate &= ~ENCR_STATE_NO_RECV_IV; in encrypt_is()
1113 lstate &= ~ENCR_STATE_NO_SEND_IV; in encrypt_is()
1126 lstate = ENCR_STATE_NOT_READY; in encrypt_is()
1137 lstate &= ~ENCR_STATE_NO_RECV_IV; /* we received an OK IV */ in encrypt_is()
1138 lstate &= ~ENCR_STATE_NO_SEND_IV; /* we dont send an IV */ in encrypt_is()
1141 lstate = ENCR_STATE_NOT_READY; in encrypt_is()
1155 encr_data.decrypt.state = lstate; in encrypt_is()
1157 if (lstate == ENCR_STATE_NOT_READY) in encrypt_is()
1160 if (lstate == ENCR_STATE_OK && encr_data.decrypt.autoflag) in encrypt_is()
1178 register int lstate; in encrypt_send_encrypt_is() local
1183 lstate = encr_data.encrypt.state; in encrypt_send_encrypt_is()
1190 return (lstate); in encrypt_send_encrypt_is()
1204 if (lstate == ENCR_STATE_NOT_READY) in encrypt_send_encrypt_is()
1205 lstate = ENCR_STATE_IN_PROGRESS; in encrypt_send_encrypt_is()
1206 else if ((lstate & ENCR_STATE_NO_SEND_IV) == 0) { in encrypt_send_encrypt_is()
1210 " state = %d\n", lstate); in encrypt_send_encrypt_is()
1211 return (lstate); in encrypt_send_encrypt_is()
1224 return (lstate); in encrypt_send_encrypt_is()
1272 lstate &= ~ENCR_STATE_NO_SEND_IV; /* we sent our IV */ in encrypt_send_encrypt_is()
1273 lstate &= ~ENCR_STATE_NO_SEND_IV; /* dont need decrypt IV */ in encrypt_send_encrypt_is()
1275 encr_data.encrypt.state = lstate; in encrypt_send_encrypt_is()
1287 return (lstate); in encrypt_send_encrypt_is()
1345 int lstate; in encrypt_start_output() local
1354 lstate = encrypt_send_encrypt_is(); in encrypt_start_output()
1356 if (lstate != ENCR_STATE_OK) { in encrypt_start_output()
1360 "= %d\n", lstate); in encrypt_start_output()
1385 lstate, nfrontp-nbackp); in encrypt_start_output()
1387 encr_data.encrypt.state = lstate; in encrypt_start_output()
1717 int lstate = ENCR_STATE_NOT_READY; in encrypt_support() local
1742 lstate = encrypt_send_encrypt_is(); in encrypt_support()
1743 if (lstate == ENCR_STATE_OK) in encrypt_support()
1841 int lstate; in encrypt_reply() local
1852 lstate = encr_data.encrypt.state; in encrypt_reply()
1856 lstate); in encrypt_reply()
1859 if (lstate == ENCR_STATE_NOT_READY) in encrypt_reply()
1860 lstate = ENCR_STATE_IN_PROGRESS; in encrypt_reply()
1861 lstate &= ~ENCR_STATE_NO_RECV_IV; /* we got the IV */ in encrypt_reply()
1862 lstate &= ~ENCR_STATE_NO_SEND_IV; /* we dont need to send IV */ in encrypt_reply()
1879 lstate = ENCR_STATE_NOT_READY; in encrypt_reply()
1886 lstate = ENCR_STATE_NOT_READY; in encrypt_reply()
1890 encr_data.encrypt.state = lstate; in encrypt_reply()
1891 if (lstate == ENCR_STATE_NOT_READY) { in encrypt_reply()
1900 if ((lstate == ENCR_STATE_OK) && encr_data.encrypt.autoflag) in encrypt_reply()
1907 lstate); in encrypt_reply()
1913 int lstate; in encrypt_set_keyid_state() local
1915 lstate = (dir == TELNET_DIR_ENCRYPT ? encr_data.encrypt.state : in encrypt_set_keyid_state()
1922 "DECRYPT"), lstate); in encrypt_set_keyid_state()
1940 if (lstate == ENCR_STATE_NOT_READY) in encrypt_set_keyid_state()
1941 lstate = ENCR_STATE_IN_PROGRESS; in encrypt_set_keyid_state()
1945 lstate &= ~ENCR_STATE_NO_KEYID; in encrypt_set_keyid_state()
1952 "DECRYPT"), lstate); in encrypt_set_keyid_state()
1955 encr_data.encrypt.state = lstate; in encrypt_set_keyid_state()
1957 encr_data.decrypt.state = lstate; in encrypt_set_keyid_state()