aboutsummaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-03-21 13:41:12 +0000
committerChristian Grothoff <christian@grothoff.org>2016-03-21 13:41:12 +0000
commit1733de7305720882b8745e82b51b6ff47c10099e (patch)
treedf9199b0e8670b089ead17186b191b80629bda8f /src/json
parent60de5f48cbfc3868570284e91415ca7e06c390e1 (diff)
downloadgnunet-1733de7305720882b8745e82b51b6ff47c10099e.tar.gz
gnunet-1733de7305720882b8745e82b51b6ff47c10099e.zip
fixing symbol naming and coding convention issues
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json_generator.c4
-rw-r--r--src/json/json_helper.c12
-rw-r--r--src/json/test_json.c10
3 files changed, 13 insertions, 13 deletions
diff --git a/src/json/json_generator.c b/src/json/json_generator.c
index 4b1ac31b1..e660e10c5 100644
--- a/src/json/json_generator.c
+++ b/src/json/json_generator.c
@@ -106,7 +106,7 @@ GNUNET_JSON_from_time_rel (struct GNUNET_TIME_Relative stamp)
106 * @return corresponding JSON encoding 106 * @return corresponding JSON encoding
107 */ 107 */
108json_t * 108json_t *
109GNUNET_JSON_from_rsa_public_key (const struct GNUNET_CRYPTO_rsa_PublicKey *pk) 109GNUNET_JSON_from_rsa_public_key (const struct GNUNET_CRYPTO_RsaPublicKey *pk)
110{ 110{
111 char *buf; 111 char *buf;
112 size_t buf_len; 112 size_t buf_len;
@@ -128,7 +128,7 @@ GNUNET_JSON_from_rsa_public_key (const struct GNUNET_CRYPTO_rsa_PublicKey *pk)
128 * @return corresponding JSON encoding 128 * @return corresponding JSON encoding
129 */ 129 */
130json_t * 130json_t *
131GNUNET_JSON_from_rsa_signature (const struct GNUNET_CRYPTO_rsa_Signature *sig) 131GNUNET_JSON_from_rsa_signature (const struct GNUNET_CRYPTO_RsaSignature *sig)
132{ 132{
133 char *buf; 133 char *buf;
134 size_t buf_len; 134 size_t buf_len;
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index cf84ae997..7265dfa66 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -690,7 +690,7 @@ parse_rsa_public_key (void *cls,
690 json_t *root, 690 json_t *root,
691 struct GNUNET_JSON_Specification *spec) 691 struct GNUNET_JSON_Specification *spec)
692{ 692{
693 struct GNUNET_CRYPTO_rsa_PublicKey **pk = spec->ptr; 693 struct GNUNET_CRYPTO_RsaPublicKey **pk = spec->ptr;
694 const char *enc; 694 const char *enc;
695 char *buf; 695 char *buf;
696 size_t len; 696 size_t len;
@@ -736,7 +736,7 @@ static void
736clean_rsa_public_key (void *cls, 736clean_rsa_public_key (void *cls,
737 struct GNUNET_JSON_Specification *spec) 737 struct GNUNET_JSON_Specification *spec)
738{ 738{
739 struct GNUNET_CRYPTO_rsa_PublicKey **pk = spec->ptr; 739 struct GNUNET_CRYPTO_RsaPublicKey **pk = spec->ptr;
740 740
741 if (NULL != *pk) 741 if (NULL != *pk)
742 { 742 {
@@ -754,7 +754,7 @@ clean_rsa_public_key (void *cls,
754 */ 754 */
755struct GNUNET_JSON_Specification 755struct GNUNET_JSON_Specification
756GNUNET_JSON_spec_rsa_public_key (const char *name, 756GNUNET_JSON_spec_rsa_public_key (const char *name,
757 struct GNUNET_CRYPTO_rsa_PublicKey **pk) 757 struct GNUNET_CRYPTO_RsaPublicKey **pk)
758{ 758{
759 struct GNUNET_JSON_Specification ret = { 759 struct GNUNET_JSON_Specification ret = {
760 .parser = &parse_rsa_public_key, 760 .parser = &parse_rsa_public_key,
@@ -782,7 +782,7 @@ parse_rsa_signature (void *cls,
782 json_t *root, 782 json_t *root,
783 struct GNUNET_JSON_Specification *spec) 783 struct GNUNET_JSON_Specification *spec)
784{ 784{
785 struct GNUNET_CRYPTO_rsa_Signature **sig = spec->ptr; 785 struct GNUNET_CRYPTO_RsaSignature **sig = spec->ptr;
786 size_t size; 786 size_t size;
787 const char *str; 787 const char *str;
788 int res; 788 int res;
@@ -828,7 +828,7 @@ static void
828clean_rsa_signature (void *cls, 828clean_rsa_signature (void *cls,
829 struct GNUNET_JSON_Specification *spec) 829 struct GNUNET_JSON_Specification *spec)
830{ 830{
831 struct GNUNET_CRYPTO_rsa_Signature **sig = spec->ptr; 831 struct GNUNET_CRYPTO_RsaSignature **sig = spec->ptr;
832 832
833 if (NULL != *sig) 833 if (NULL != *sig)
834 { 834 {
@@ -846,7 +846,7 @@ clean_rsa_signature (void *cls,
846 */ 846 */
847struct GNUNET_JSON_Specification 847struct GNUNET_JSON_Specification
848GNUNET_JSON_spec_rsa_signature (const char *name, 848GNUNET_JSON_spec_rsa_signature (const char *name,
849 struct GNUNET_CRYPTO_rsa_Signature **sig) 849 struct GNUNET_CRYPTO_RsaSignature **sig)
850{ 850{
851 struct GNUNET_JSON_Specification ret = { 851 struct GNUNET_JSON_Specification ret = {
852 .parser = &parse_rsa_signature, 852 .parser = &parse_rsa_signature,
diff --git a/src/json/test_json.c b/src/json/test_json.c
index a334bf599..6f1ca565a 100644
--- a/src/json/test_json.c
+++ b/src/json/test_json.c
@@ -150,19 +150,19 @@ test_raw ()
150static int 150static int
151test_rsa () 151test_rsa ()
152{ 152{
153 struct GNUNET_CRYPTO_rsa_PublicKey *pub; 153 struct GNUNET_CRYPTO_RsaPublicKey *pub;
154 struct GNUNET_CRYPTO_rsa_PublicKey *pub2; 154 struct GNUNET_CRYPTO_RsaPublicKey *pub2;
155 struct GNUNET_JSON_Specification pspec[] = { 155 struct GNUNET_JSON_Specification pspec[] = {
156 GNUNET_JSON_spec_rsa_public_key (NULL, &pub2), 156 GNUNET_JSON_spec_rsa_public_key (NULL, &pub2),
157 GNUNET_JSON_spec_end() 157 GNUNET_JSON_spec_end()
158 }; 158 };
159 struct GNUNET_CRYPTO_rsa_Signature *sig; 159 struct GNUNET_CRYPTO_RsaSignature *sig;
160 struct GNUNET_CRYPTO_rsa_Signature *sig2; 160 struct GNUNET_CRYPTO_RsaSignature *sig2;
161 struct GNUNET_JSON_Specification sspec[] = { 161 struct GNUNET_JSON_Specification sspec[] = {
162 GNUNET_JSON_spec_rsa_signature (NULL, &sig2), 162 GNUNET_JSON_spec_rsa_signature (NULL, &sig2),
163 GNUNET_JSON_spec_end() 163 GNUNET_JSON_spec_end()
164 }; 164 };
165 struct GNUNET_CRYPTO_rsa_PrivateKey *priv; 165 struct GNUNET_CRYPTO_RsaPrivateKey *priv;
166 char msg[] = "Hello"; 166 char msg[] = "Hello";
167 json_t *jp; 167 json_t *jp;
168 json_t *js; 168 json_t *js;