SSL_shutdown(machine->ssl);
if(machine->ssl) SSL_shutdown(machine->ssl);
int state_machine_close_clean(state_machine_t *machine){	/* Well, first thing to do is null out the clean-side buffers - they're	 * no use any more. */	buffer_close(&machine->clean_in);	buffer_close(&machine->clean_out);	/* And start an SSL shutdown */	SSL_shutdown(machine->ssl);	/* This is an "event", so flush the SSL of any generated traffic */	state_machine_churn(machine);	if(buffer_empty(&machine->dirty_in) &&			buffer_empty(&machine->dirty_out))		return 0;	return 1;}