classes/CSSHSession.cpp
std::string CSSHSession::getKeyExchangeAlgorithm()
    {
        std::string keyExchangeAlg;
        const char *keyexchange = ssh_get_kex_algo(m_session);
        if (keyexchange == NULL)
        {
            throw Exception(*this, __func__);
        }
        keyExchangeAlg.assign(&keyexchange[0], &keyexchange[std::strlen(keyexchange)]);
        return (keyExchangeAlg);
    }
//
// Return string representing name of current session key exchange algorithm.
//
Return string representing name of current session key exchange algorithm.
Return string representing name of current session key exchange algorithm .
std::string CSSHSession::getKeyExchangeAlgorithm()
    {
        std::string keyExchangeAlg;
        const char *keyexchange = ssh_get_kex_algo(m_session);
        if (keyexchange == NULL)
        {
            throw Exception(*this, __func__);
        }
        keyExchangeAlg.assign(&keyexchange[0], &keyexchange[std::strlen(keyexchange)]);
        return (keyExchangeAlg);
    }
std :: string CSSHSession :: getKeyExchangeAlgorithm ( ) { std :: string keyExchangeAlg ; const char * keyexchange = ssh_get_kex_algo ( m_session ) ; if ( keyexchange == NULL ) { throw Exception ( * this , __func__ ) ; } keyExchangeAlg . assign ( & keyexchange [ 0 ] , & keyexchange [ std :: strlen ( keyexchange ) ] ) ; return ( keyExchangeAlg ) ; }
Return string representing name of current session key exchange algorithm.
Return string representing name of current session key exchange algorithm .