* @brief Get a list of supported crypto libraries
*
* crypto_list - array of struct knet_crypto_info *
- * If NULL then only the number of names is returned in crypto_list_entries
+ * If NULL then only the number of structs is returned in crypto_list_entries
* to allow the caller to allocate sufficient space.
* libknet does not allow more than 256 crypto methods at the moment.
* it is safe to allocate 256 structs to avoid calling
* knet_get_crypto_list twice.
*
- * crypto_list_entries - returns the number of strings in crypto_names
+ * crypto_list_entries - returns the number of structs in crypto_list
*
* @return
* knet_get_crypto_list returns
* @brief Get a list of support compression types
*
* compress_list - array of struct knet_compress_info *
- * If NULL then only the number of names is returned in num_names to
+ * If NULL then only the number of structs is returned in compress_list_entries
* to allow the caller to allocate sufficient space.
* libknet does not allow more than 256 compress methods at the moment.
* it is safe to allocate 256 structs to avoid calling
* knet_get_compress_list twice.
*
- * compress_list_entries - returns the number of strings in compres_names
+ * compress_list_entries - returns the number of structs in compress_list
*
* @return
* knet_get_compress_list returns
.PP
knet_get_compress_list
.PP
-compress_list - array of struct knet_compress_info * If NULL then only the number of names is returned in num_names to to allow the caller to allocate sufficient space. libknet does not allow more than 256 compress methods at the moment. it is safe to allocate 256 structs to avoid calling knet_get_compress_list twice.
+compress_list - array of struct knet_compress_info * If NULL then only the number of structs is returned in compress_list_entries to allow the caller to allocate sufficient space. libknet does not allow more than 256 compress methods at the moment. it is safe to allocate 256 structs to avoid calling knet_get_compress_list twice.
.PP
-compress_list_entries - returns the number of strings in compres_names
+compress_list_entries - returns the number of structs in compress_list
.SH STRUCTURES
.SS ""
.PP
.PP
knet_get_crypto_list
.PP
-crypto_list - array of struct knet_crypto_info * If NULL then only the number of names is returned in crypto_list_entries to allow the caller to allocate sufficient space. libknet does not allow more than 256 crypto methods at the moment. it is safe to allocate 256 structs to avoid calling knet_get_crypto_list twice.
+crypto_list - array of struct knet_crypto_info * If NULL then only the number of structs is returned in crypto_list_entries to allow the caller to allocate sufficient space. libknet does not allow more than 256 crypto methods at the moment. it is safe to allocate 256 structs to avoid calling knet_get_crypto_list twice.
.PP
-crypto_list_entries - returns the number of strings in crypto_names
+crypto_list_entries - returns the number of structs in crypto_list
.SH STRUCTURES
.SS ""
.PP
.RS
.nf
\fB
+struct knet_handle_crypto_cfg {
+ char \fIcrypto_model\fP;
+ char \fIcrypto_cipher_type\fP;
+ char \fIcrypto_hash_type\fP;
+ unsigned char \fIprivate_key\fP;
+ unsigned int \fIprivate_key_len\fP;
+};
+\fP
+.fi
+.RE
+.SS ""
+.PP
+.sp
+.sp
+.RS
+.nf
+\fB
+struct knet_transport_info {
+ const char *\fIname\fP;
+ uint8_t \fIid\fP;
+ uint8_t \fIproperties\fP;
+ char \fIpad\fP;
+};
+\fP
+.fi
+.RE
+.SS ""
+.PP
+.sp
+.sp
+.RS
+.nf
+\fB
+struct knet_host_status {
+ uint8_t \fIreachable\fP;
+ uint8_t \fIremote\fP;
+ uint8_t \fIexternal\fP;
+};
+\fP
+.fi
+.RE
+.SS ""
+.PP
+.sp
+.sp
+.RS
+.nf
+\fB
struct knet_handle_stats {
size_t \fIsize\fP;
uint64_t \fItx_uncompressed_packets\fP;
.RS
.nf
\fB
-struct knet_crypto_info {
- const char *\fIname\fP;
- uint8_t \fIproperties\fP;
- char \fIpad\fP;
-};
-\fP
-.fi
-.RE
-.SS ""
-.PP
-.sp
-.sp
-.RS
-.nf
-\fB
-struct knet_transport_info {
- const char *\fIname\fP;
- uint8_t \fIid\fP;
- uint8_t \fIproperties\fP;
- char \fIpad\fP;
-};
-\fP
-.fi
-.RE
-.SS ""
-.PP
-.sp
-.sp
-.RS
-.nf
-\fB
struct knet_handle_compress_cfg {
char \fIcompress_model\fP;
uint32_t \fIcompress_threshold\fP;
.RS
.nf
\fB
-struct knet_compress_info {
+struct knet_crypto_info {
const char *\fIname\fP;
uint8_t \fIproperties\fP;
char \fIpad\fP;
.RS
.nf
\fB
-struct knet_host_status {
- uint8_t \fIreachable\fP;
- uint8_t \fIremote\fP;
- uint8_t \fIexternal\fP;
-};
-\fP
-.fi
-.RE
-.SS ""
-.PP
-.sp
-.sp
-.RS
-.nf
-\fB
-struct knet_handle_crypto_cfg {
- char \fIcrypto_model\fP;
- char \fIcrypto_cipher_type\fP;
- char \fIcrypto_hash_type\fP;
- unsigned char \fIprivate_key\fP;
- unsigned int \fIprivate_key_len\fP;
+struct knet_compress_info {
+ const char *\fIname\fP;
+ uint8_t \fIproperties\fP;
+ char \fIpad\fP;
};
\fP
.fi