X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcske%2Fsilcske.h;h=7d0aab9e82543def58db09c3ab366d3774654ca0;hb=a4bca275d651ca750224149945bc8fca5c80de77;hp=ffb25b0aa62b4c1f59276c9b9b7ad634482fcee2;hpb=f50fab3886a56151079728daa678fed3b882b433;p=silc.git diff --git a/lib/silcske/silcske.h b/lib/silcske/silcske.h index ffb25b0a..7d0aab9e 100644 --- a/lib/silcske/silcske.h +++ b/lib/silcske/silcske.h @@ -892,4 +892,32 @@ silc_ske_process_key_material_data(unsigned char *data, ***/ void silc_ske_free_key_material(SilcSKEKeyMaterial *key); +/****f* silcske/SilcSKEAPI/silc_ske_parse_version + * + * SYNOPSIS + * + * bool silc_ske_parse_version(SilcSKE ske, + * SilcUInt32 *protocol_version, + * char **protocol_version_string, + * SilcUInt32 *software_version, + * char **software_version_string, + * char **vendor_version); + * + * DESCRIPTION + * + * This utility function can be used to parse the remote host's version + * string. This returns the protocol version, and software version into + * the `protocol_version', `software_version' and `vendor_version' pointers + * if they are provided. The string versions of the versions are saved + * in *_string pointers if they are provided. Returns TRUE if the version + * string was successfully parsed. + * + ***/ +bool silc_ske_parse_version(SilcSKE ske, + SilcUInt32 *protocol_version, + char **protocol_version_string, + SilcUInt32 *software_version, + char **software_version_string, + char **vendor_version); + #endif /* !SILCSKE_H */