1
1
Этот коммит содержится в:
Aris Adamantiadis 2009-09-23 11:21:12 +02:00
родитель 068a7dfc49
Коммит 95558d54b0
2 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -376,12 +376,12 @@ enum ssh_options_e {
SSH_OPTIONS_SSH2,
SSH_OPTIONS_LOG_VERBOSITY,
SSH_OPTTIONS_AUTH_CALLBACK,
SSH_OPTTIONS_AUTH_USERDATA,
SSH_OPTTIONS_LOG_CALLBACK,
SSH_OPTTIONS_LOG_USERDATA,
SSH_OPTTIONS_STATUS_CALLBACK,
SSH_OPTTIONS_STATUS_ARG,
SSH_OPTIONS_AUTH_CALLBACK,
SSH_OPTIONS_AUTH_USERDATA,
SSH_OPTIONS_LOG_CALLBACK,
SSH_OPTIONS_LOG_USERDATA,
SSH_OPTIONS_STATUS_CALLBACK,
SSH_OPTIONS_STATUS_ARG,
SSH_OPTIONS_CIPHERS_C_S,
SSH_OPTIONS_CIPHERS_S_C,

Просмотреть файл

@ -42,7 +42,7 @@
/** This structure is freed automaticaly by ssh_disconnect()
* when you use it. \n
* It can be used by only one ssh_connect(), not more.\n
* also by default, ssh1 support is not allowed
* also by default, ssh1 support is not allowed
*
* \brief initializes a new option structure
* \returns an empty intialized option structure.
@ -575,30 +575,30 @@ int ssh_options_set(ssh_options opt, enum ssh_options_e type,
opt->log_verbosity = *x;
}
case SSH_OPTTIONS_AUTH_CALLBACK:
case SSH_OPTIONS_AUTH_CALLBACK:
if (value == NULL) {
return -1;
} else {
opt->auth_function = (ssh_auth_callback) value;
}
break;
case SSH_OPTTIONS_AUTH_USERDATA:
case SSH_OPTIONS_AUTH_USERDATA:
opt->auth_userdata = (void *) value;
break;
case SSH_OPTTIONS_LOG_CALLBACK:
case SSH_OPTIONS_LOG_CALLBACK:
if (value == NULL) {
return -1;
} else {
opt->log_function = (ssh_log_callback) value;
}
break;
case SSH_OPTTIONS_LOG_USERDATA:
case SSH_OPTIONS_LOG_USERDATA:
opt->auth_userdata = (void *) value;
break;
case SSH_OPTTIONS_STATUS_CALLBACK:
case SSH_OPTIONS_STATUS_CALLBACK:
/* TODO */
break;
case SSH_OPTTIONS_STATUS_ARG:
case SSH_OPTIONS_STATUS_ARG:
/* TODO */
break;
case SSH_OPTIONS_CIPHERS_C_S: