struct sessionid *session,
char *uid_str,
char *gid_str,
+ const char *encryption_cipher,
+ enum crypto_degree encryption_degree,
+ const char *signing_cipher,
+ enum crypto_degree signing_degree,
const char *connection_dialect)
{
struct json_object sub_json;
if (result < 0) {
goto failure;
}
+ result = add_crypto_to_json(&sub_json, "encryption",
+ encryption_cipher, encryption_degree);
+ if (result < 0) {
+ goto failure;
+ }
+ result = add_crypto_to_json(&sub_json, "signing",
+ signing_cipher, signing_degree);
+ if (result < 0) {
+ goto failure;
+ }
result = json_add_object(&session_json, id_str, &sub_json);
if (result < 0) {
struct sessionid *session,
char *uid_str,
char *gid_str,
+ const char *encryption_cipher,
+ enum crypto_degree encryption_degree,
+ const char *signing_cipher,
+ enum crypto_degree signing_degree,
const char *connection_dialect);
#endif
struct sessionid *session,
char *uid_str,
char *gid_str,
+ const char *encryption_cipher,
+ enum crypto_degree encryption_degree,
+ const char *signing_cipher,
+ enum crypto_degree signing_degree,
const char *connection_dialect)
{
return 0;