Skip to content

Commit

Permalink
remove obsolete variable, adjust missing API change
Browse files Browse the repository at this point in the history
  • Loading branch information
regiMario committed Sep 12, 2024
1 parent b72bdd9 commit 157b106
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion examples/datause.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ int main ( int argc, char **argv ) {
// Mask our password in the logs so it is replace by ^^^SECRET^^^
// or whatever was set by DV_SECRET_PLACE_HOLDER last
// APPID has already been masked by dvNew
ret = dvSetProp(dc, DV_SECRET, passwd);
ret = ruCleanAdd(ruGetCleaner(), passwd, "^^^SECRET^^^");
if (ret) break;
// sample usage of the post fields callback
ret = dvSetPostCb(dc, &postCb, (void *) passwd);
Expand Down
2 changes: 0 additions & 2 deletions lib/lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ extern "C" {

extern const char *myName;
extern const char *myVersion;
// The current dvPwReplacement of a secret when calling dvSetProp with DV_SECRET.
extern char *dvPwReplacement;

typedef struct dv_ctx *dvctx;
typedef struct dv_get_result *dvGetRes;
Expand Down
3 changes: 0 additions & 3 deletions lib/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ DVAPI int32_t dvGetVid(ruMap vidMap, const char* vid, char** pid) {
/******************************************************************************/
/* CLEAN LOGGER */
/******************************************************************************/
// The current dvPwReplacement of a secret when calling dvSetProp with DV_SECRET.
char *dvPwReplacement = dvDefaultSecretPlaceHolder;

void dvCleanerAdd(trans_chars secret) {
ruCleanAdd(ruGetCleaner(), secret, dvDefaultSecretPlaceHolder);
}
Expand Down

0 comments on commit 157b106

Please sign in to comment.