Skip to content

Commit

Permalink
PUBNUB_PROXY_API
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Nov 22, 2023
1 parent 5575298 commit 93edf61
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/pbhttp_digest.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#include "pubnub_internal.h"

#include "core/pubnub_proxy_core.h"
Expand Down Expand Up @@ -319,3 +322,5 @@ int pbhttp_digest_prep_header_to_send(struct pbhttp_digest_context* ctx,

return 0;
}

#endif /* PUBNUB_PROXY_API */
5 changes: 5 additions & 0 deletions core/pbhttp_digest.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#if !defined INC_PBHTTP_DIGEST
#define INC_PBHTTP_DIGEST

Expand Down Expand Up @@ -152,3 +155,5 @@ char const* pbhttp_digest_algorithm2str(enum pbhttp_digest_algorithm e);


#endif /* !defined INC_PBHTTP_DIGEST */
#endif /* PUBNUB_PROXY_API */

5 changes: 5 additions & 0 deletions core/pbntlm_core.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#include "core/pbntlm_core.h"

#include "core/pbntlm_packer.h"
Expand Down Expand Up @@ -81,3 +84,5 @@ int pbntlm_core_prep_msg_to_send(pubnub_t *pb, pubnub_bymebl_t* data)
}
}

#endif /* PUBNUB_PROXY_API */

4 changes: 4 additions & 0 deletions core/pbntlm_core.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#if !defined INC_PBNTLM_CORE
#define INC_PBNTLM_CORE

Expand All @@ -16,3 +19,4 @@ int pbntlm_core_prep_msg_to_send(pubnub_t *pb, pubnub_bymebl_t* data);


#endif /* !defined INC_PBNTLM_CORE */
#endif /* PUBNUB_PROXY_API */
5 changes: 5 additions & 0 deletions core/pbntlm_packer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#if !defined INC_PBNTLM_PACKER
#define INC_PBNTLM_PACKER

Expand All @@ -19,3 +22,5 @@ void pbntlm_packer_deinit(pbntlm_ctx_t *pb);


#endif /* !defined INC_PBNTLM_PACKER */
#endif /* PUBNUB_PROXY_API */

6 changes: 6 additions & 0 deletions core/pbntlm_packer_sspi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#include "pbntlm_packer.h"

#include "pubnub_log.h"
Expand Down Expand Up @@ -212,3 +215,6 @@ void pbntlm_packer_deinit(pbntlm_ctx_t *pb)
SecInvalidateHandle(&pb->hcreds);
}
}

#endif /* PUBNUB_PROXY_API */

5 changes: 5 additions & 0 deletions core/pbntlm_packer_std.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#include "pbntlm_packer.h"

#include "pubnub_log.h"
Expand Down Expand Up @@ -51,3 +54,5 @@ void pbntlm_packer_deinit(pbntlm_ctx_t *pb)
{
PUBNUB_UNUSED(pb);
}

#endif /* PUBNUB_PROXY_API */
5 changes: 5 additions & 0 deletions core/pubnub_proxy.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#include "pubnub_internal.h"

#include "pubnub_proxy.h"
Expand Down Expand Up @@ -144,3 +147,5 @@ int pubnub_set_proxy_authentication_username_password(pubnub_t* p,

return 0;
}

#endif /* PUBNUB_PROXY_API */
5 changes: 5 additions & 0 deletions core/pubnub_proxy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#if !defined INC_PUBNUB_PROXY
#define INC_PUBNUB_PROXY

Expand Down Expand Up @@ -221,3 +224,5 @@ PUBNUB_EXTERN int pubnub_proxy_get_config(pubnub_t* pb,


#endif /* defined INC_PUBNUB_PROXY */

#endif /* PUBNUB_PROXY_API */
5 changes: 5 additions & 0 deletions core/pubnub_proxy_core.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#include "core/pubnub_proxy_core.h"

#include "core/pubnub_assert.h"
Expand Down Expand Up @@ -378,3 +381,5 @@ enum pbproxyFinInstruction pbproxy_handle_finish(pubnub_t* pb)

return pbproxyFinGoOn;
}

#endif /* PUBNUB_PROXY_API */
5 changes: 5 additions & 0 deletions core/pubnub_proxy_core.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */

#if PUBNUB_PROXY_API

#if !defined INC_PUBNUB_PROXY_CORE
#define INC_PUBNUB_PROXY_CORE

Expand Down Expand Up @@ -81,3 +84,5 @@ enum pbproxyFinInstruction pbproxy_handle_finish(pubnub_t *pb);


#endif /* !defined INC_PUBNUB_PROXY_CORE */
#endif /* PUBNUB_PROXY_API */

0 comments on commit 93edf61

Please sign in to comment.