mirror of
				https://github.com/libssh2/libssh2.git
				synced 2025-11-03 22:13:11 +03:00 
			
		
		
		
	cleanup: prefer the internal functions
To get the blocking vs non-blocking to work as smooth as possible and behave better internally, we avoid using the external interfaces when calling functions internally. Renamed a few internal functions to use _libssh2 prefix when not being private within a file, and removed the libssh2_ for one that was private within the file.
This commit is contained in:
		@@ -487,7 +487,7 @@ static LIBSSH2_PUBLICKEY *publickey_init(LIBSSH2_SESSION *session)
 | 
			
		||||
  err_exit:
 | 
			
		||||
    session->pkeyInit_state = libssh2_NB_state_sent4;
 | 
			
		||||
    if (session->pkeyInit_channel) {
 | 
			
		||||
        rc = libssh2_channel_close(session->pkeyInit_channel);
 | 
			
		||||
        rc = _libssh2_channel_close(session->pkeyInit_channel);
 | 
			
		||||
        if (rc == LIBSSH2_ERROR_EAGAIN) {
 | 
			
		||||
            _libssh2_error(session, LIBSSH2_ERROR_EAGAIN,
 | 
			
		||||
                           "Would block closing channel");
 | 
			
		||||
@@ -1011,7 +1011,7 @@ libssh2_publickey_shutdown(LIBSSH2_PUBLICKEY * pkey)
 | 
			
		||||
        pkey->listFetch_data = NULL;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    rc = libssh2_channel_free(pkey->channel);
 | 
			
		||||
    rc = _libssh2_channel_free(pkey->channel);
 | 
			
		||||
    if (rc == LIBSSH2_ERROR_EAGAIN)
 | 
			
		||||
        return rc;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user