mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-05 20:55:47 +03:00
libssh2_session_supported_algs.3: fix formatting mistakes
Reported-by: Max Horn Fixes #57
This commit is contained in:
@@ -10,9 +10,9 @@ int libssh2_session_supported_algs(LIBSSH2_SESSION* session,
|
|||||||
const char*** algs);
|
const char*** algs);
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
\fIsession\fP - An instance of initialized LIBSSH2_SESSION (the function will
|
\fIsession\fP - An instance of initialized LIBSSH2_SESSION (the function will
|
||||||
use its pointer to the memory allocation function). \fImethod_type\fP - Method
|
use its pointer to the memory allocation function). \fImethod_type\fP -
|
||||||
type. See .BR \fIlibssh2_session_method_pref(3)\fP. \fIalgs\fP - Address of a
|
Method type. See \fIlibssh2_session_method_pref(3)\fP. \fIalgs\fP - Address
|
||||||
pointer that will point to an array of returned algorithms
|
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
|
Get a list of supported algorithms for the given \fImethod_type\fP. The
|
||||||
method_type parameter is equivalent to method_type in
|
method_type parameter is equivalent to method_type in
|
||||||
@@ -44,9 +44,9 @@ rc = libssh2_session_supported_algs(session,
|
|||||||
if (rc>0) {
|
if (rc>0) {
|
||||||
/* the call succeeded, do sth. with the list of algorithms
|
/* the call succeeded, do sth. with the list of algorithms
|
||||||
(e.g. list them)... */
|
(e.g. list them)... */
|
||||||
printf("Supported symmetric algorithms:\n");
|
printf("Supported symmetric algorithms:\\n");
|
||||||
for ( i=0; i<rc; i++ )
|
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 */
|
/* ... and free the allocated memory when not needed anymore */
|
||||||
libssh2_free(session, algorithms);
|
libssh2_free(session, algorithms);
|
||||||
|
Reference in New Issue
Block a user