Skip to content

Commit c859a6c

Browse files
committed
Rename EdDSA API to win_sparkle_set_eddsa_public_key()
1 parent 8ac52b1 commit c859a6c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/winsparkle.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,13 @@ WIN_SPARKLE_API int __cdecl win_sparkle_set_dsa_pub_pem(const char *dsa_pub_pem)
196196
If this function isn't called by the app, public key is obtained from
197197
Windows resource named "EdDSAPub" of type "EDDSA".
198198
199-
@param eddsa_pub_base64 EdDSA public key in base64 encoded format.
199+
@param pubkey EdDSA public key in base64 encoded format.
200200
201201
@return 1 if valid EdDSA public key provided, 0 otherwise.
202202
203203
@since 0.9.0
204204
*/
205-
WIN_SPARKLE_API int __cdecl win_sparkle_set_eddsa_pub_base64(const char* eddsa_pub_base64);
205+
WIN_SPARKLE_API int __cdecl win_sparkle_set_eddsa_public_key(const char *pubkey);
206206

207207
/**
208208
Sets application metadata.

src/dll_api.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ WIN_SPARKLE_API int __cdecl win_sparkle_set_dsa_pub_pem(const char *dsa_pub_pem)
161161
return 0;
162162
}
163163

164-
WIN_SPARKLE_API int __cdecl win_sparkle_set_eddsa_pub_base64(const char* eddsa_pub_base64)
164+
WIN_SPARKLE_API int __cdecl win_sparkle_set_eddsa_public_key(const char *pubkey)
165165
{
166166
try
167167
{
168-
Settings::SetEdDSAPubKey(eddsa_pub_base64);
168+
Settings::SetEdDSAPubKey(pubkey);
169169
return 1;
170170
}
171171
CATCH_ALL_EXCEPTIONS

0 commit comments

Comments
 (0)