MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / SetAcceptedMethods

Method SetAcceptedMethods

src/FTPClientWrapperSSH.cpp:398–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398int FTPClientWrapperSSH::SetAcceptedMethods(AuthenticationMethods acceptedMethods) {
399 m_acceptedMethods = 0;
400 if (acceptedMethods & Method_Password)
401 m_acceptedMethods |= SSH_AUTH_METHOD_PASSWORD;
402 if (acceptedMethods & Method_Key)
403 m_acceptedMethods |= SSH_AUTH_METHOD_PUBLICKEY;
404 if (acceptedMethods & Method_Interactive)
405 m_acceptedMethods |= SSH_AUTH_METHOD_INTERACTIVE;
406
407 return 0;
408}
409
410//////////////////////////////////////////////////
411//////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected