Skip to content

Commit b95506a

Browse files
authored
Set custom server URL, fingerprint, and connection security
Added methods to support a custom server URL, a host fingerprint for SSL, or option to set the connection client to insecure.
1 parent a7be639 commit b95506a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/internal/ParseClient.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class ParseClient {
4040
private:
4141
char applicationId[41]; // APPLICATION_ID_MAX_LEN
4242
char clientKey[41]; // CLIENT_KEY_MAX_LEN
43+
char serverURL[100]; // SERVER_URL_MAX_LEN
44+
char hostFingerprint[100]; // HOST_FINGERPRINT_MAX_LEN
4345
char installationId[37]; // INSTALLATION_ID_MAX_LEN
4446
char sessionToken[41]; // SESSION_TOKEN_MAX_LEN
4547

@@ -92,6 +94,25 @@ class ParseClient {
9294
*
9395
*/
9496
void setServerURL(const char *serverURL);
97+
98+
/*! \fn void setHostFingerprint(const char *hostFingerprint)
99+
* \brief Set the host fingerprint this client.
100+
*
101+
* Set the custom host fingerprint for this client. This needs to be called
102+
* API request.
103+
*
104+
* \param hostFingerprint The host fingerprint of the serverURL.
105+
*
106+
*/
107+
void setHostFingerprint(const char *hostFingerprint);
108+
109+
/*! \fn setClientInsecure()
110+
* \brief Sets the connection client to insecure
111+
*
112+
*
113+
*
114+
*/
115+
void setClientInsecure();
95116

96117
/*! \fn void setInstallationId(const char *installationId)
97118
* \brief Set the installation object id for this client.

0 commit comments

Comments
 (0)