Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Olm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
Olm
Commits
dac2c106
Commit
dac2c106
authored
6 years ago
by
Hubert Chathi
Browse files
Options
Downloads
Patches
Plain Diff
use void in type signatures for functions with no arguments
parent
f709b062
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/olm/pk.h
+4
-4
4 additions, 4 deletions
include/olm/pk.h
src/pk.cpp
+4
-4
4 additions, 4 deletions
src/pk.cpp
with
8 additions
and
8 deletions
include/olm/pk.h
+
4
−
4
View file @
dac2c106
...
@@ -26,7 +26,7 @@ extern "C" {
...
@@ -26,7 +26,7 @@ extern "C" {
typedef
struct
OlmPkEncryption
OlmPkEncryption
;
typedef
struct
OlmPkEncryption
OlmPkEncryption
;
/* The size of an encryption object in bytes */
/* The size of an encryption object in bytes */
size_t
olm_pk_encryption_size
();
size_t
olm_pk_encryption_size
(
void
);
/** Initialise an encryption object using the supplied memory
/** Initialise an encryption object using the supplied memory
* The supplied memory must be at least olm_pk_encryption_size() bytes */
* The supplied memory must be at least olm_pk_encryption_size() bytes */
...
@@ -64,7 +64,7 @@ size_t olm_pk_mac_length(
...
@@ -64,7 +64,7 @@ size_t olm_pk_mac_length(
);
);
/** Get the length of a public or ephemeral key */
/** Get the length of a public or ephemeral key */
size_t
olm_pk_key_length
();
size_t
olm_pk_key_length
(
void
);
/** The number of random bytes needed to encrypt a message. */
/** The number of random bytes needed to encrypt a message. */
size_t
olm_pk_encrypt_random_length
(
size_t
olm_pk_encrypt_random_length
(
...
@@ -89,7 +89,7 @@ size_t olm_pk_encrypt(
...
@@ -89,7 +89,7 @@ size_t olm_pk_encrypt(
typedef
struct
OlmPkDecryption
OlmPkDecryption
;
typedef
struct
OlmPkDecryption
OlmPkDecryption
;
/* The size of a decryption object in bytes */
/* The size of a decryption object in bytes */
size_t
olm_pk_decryption_size
();
size_t
olm_pk_decryption_size
(
void
);
/** Initialise a decryption object using the supplied memory
/** Initialise a decryption object using the supplied memory
* The supplied memory must be at least olm_pk_decryption_size() bytes */
* The supplied memory must be at least olm_pk_decryption_size() bytes */
...
@@ -109,7 +109,7 @@ size_t olm_clear_pk_decryption(
...
@@ -109,7 +109,7 @@ size_t olm_clear_pk_decryption(
);
);
/** The number of random bytes needed to generate a new key. */
/** The number of random bytes needed to generate a new key. */
size_t
olm_pk_generate_key_random_length
();
size_t
olm_pk_generate_key_random_length
(
void
);
/** Generate a new key to use for decrypting messages. The associated public
/** Generate a new key to use for decrypting messages. The associated public
* key will be written to the pubkey buffer. Returns olm_error() on failure. If
* key will be written to the pubkey buffer. Returns olm_error() on failure. If
...
...
This diff is collapsed.
Click to expand it.
src/pk.cpp
+
4
−
4
View file @
dac2c106
...
@@ -43,7 +43,7 @@ const char * olm_pk_encryption_last_error(
...
@@ -43,7 +43,7 @@ const char * olm_pk_encryption_last_error(
return
_olm_error_to_string
(
error
);
return
_olm_error_to_string
(
error
);
}
}
size_t
olm_pk_encryption_size
()
{
size_t
olm_pk_encryption_size
(
void
)
{
return
sizeof
(
OlmPkEncryption
);
return
sizeof
(
OlmPkEncryption
);
}
}
...
@@ -155,7 +155,7 @@ const char * olm_pk_decryption_last_error(
...
@@ -155,7 +155,7 @@ const char * olm_pk_decryption_last_error(
return
_olm_error_to_string
(
error
);
return
_olm_error_to_string
(
error
);
}
}
size_t
olm_pk_decryption_size
()
{
size_t
olm_pk_decryption_size
(
void
)
{
return
sizeof
(
OlmPkDecryption
);
return
sizeof
(
OlmPkDecryption
);
}
}
...
@@ -176,11 +176,11 @@ size_t olm_clear_pk_decryption(
...
@@ -176,11 +176,11 @@ size_t olm_clear_pk_decryption(
return
sizeof
(
OlmPkDecryption
);
return
sizeof
(
OlmPkDecryption
);
}
}
size_t
olm_pk_generate_key_random_length
()
{
size_t
olm_pk_generate_key_random_length
(
void
)
{
return
CURVE25519_KEY_LENGTH
;
return
CURVE25519_KEY_LENGTH
;
}
}
size_t
olm_pk_key_length
()
{
size_t
olm_pk_key_length
(
void
)
{
return
olm
::
encode_base64_length
(
CURVE25519_KEY_LENGTH
);
return
olm
::
encode_base64_length
(
CURVE25519_KEY_LENGTH
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment