1
1

libssh2_session_supported_algs.3: fix formatting mistakes

Reported-by: Max Horn
Fixes #57
Этот коммит содержится в:
Daniel Stenberg 2019-03-20 23:50:42 +01:00
родитель c3d89b9720
Коммит fb4cc5cb1f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 5CC908FDB71E12C2

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

@ -10,9 +10,9 @@ int libssh2_session_supported_algs(LIBSSH2_SESSION* session,
const char*** algs);
.SH DESCRIPTION
\fIsession\fP - An instance of initialized LIBSSH2_SESSION (the function will
use its pointer to the memory allocation function). \fImethod_type\fP - Method
type. See .BR \fIlibssh2_session_method_pref(3)\fP. \fIalgs\fP - Address of a
pointer that will point to an array of returned algorithms
use its pointer to the memory allocation function). \fImethod_type\fP -
Method type. See \fIlibssh2_session_method_pref(3)\fP. \fIalgs\fP - Address
of a pointer that will point to an array of returned algorithms
Get a list of supported algorithms for the given \fImethod_type\fP. The
method_type parameter is equivalent to method_type in
@ -44,9 +44,9 @@ rc = libssh2_session_supported_algs(session,
if (rc>0) {
/* the call succeeded, do sth. with the list of algorithms
(e.g. list them)... */
printf("Supported symmetric algorithms:\n");
printf("Supported symmetric algorithms:\\n");
for ( i=0; i<rc; i++ )
printf("\t%s\n", algorithms[i]);
printf("\\t%s\\n", algorithms[i]);
/* ... and free the allocated memory when not needed anymore */
libssh2_free(session, algorithms);