diff --git a/cunit/test_ntlm.c b/cunit/test_ntlm.c index 9680ff164..9ff7b9685 100644 --- a/cunit/test_ntlm.c +++ b/cunit/test_ntlm.c @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include "libfreerdp-sspi/NTLM/ntlm.h" #include "libfreerdp-sspi/NTLM/ntlm_compute.h" diff --git a/cunit/test_sspi.c b/cunit/test_sspi.c index 493d8e2ae..a7b4132eb 100644 --- a/cunit/test_sspi.c +++ b/cunit/test_sspi.c @@ -23,7 +23,7 @@ #include #include "test_sspi.h" -#include +#include #define NTLM_PACKAGE_NAME "NTLM" diff --git a/include/freerdp/auth/credssp.h b/include/freerdp/sspi/credssp.h similarity index 94% rename from include/freerdp/auth/credssp.h rename to include/freerdp/sspi/credssp.h index 645c4cc41..4279a0418 100644 --- a/include/freerdp/auth/credssp.h +++ b/include/freerdp/sspi/credssp.h @@ -17,8 +17,8 @@ * limitations under the License. */ -#ifndef FREERDP_AUTH_CREDSSP_H -#define FREERDP_AUTH_CREDSSP_H +#ifndef FREERDP_SSPI_CREDSSP_H +#define FREERDP_SSPI_CREDSSP_H typedef struct rdp_credssp rdpCredssp; @@ -28,7 +28,7 @@ typedef struct rdp_credssp rdpCredssp; #include #include -#include +#include #include #include @@ -68,4 +68,4 @@ SECURITY_STATUS credssp_encrypt_ts_credentials(rdpCredssp* credssp); FREERDP_API rdpCredssp* credssp_new(freerdp* instance, rdpTls* tls, rdpSettings* settings); FREERDP_API void credssp_free(rdpCredssp* credssp); -#endif /* FREERDP_AUTH_CREDSSP_H */ +#endif /* FREERDP_SSPI_CREDSSP_H */ diff --git a/include/freerdp/auth/sspi.h b/include/freerdp/sspi/sspi.h similarity index 99% rename from include/freerdp/auth/sspi.h rename to include/freerdp/sspi/sspi.h index 50729bc6d..79dfd088a 100644 --- a/include/freerdp/auth/sspi.h +++ b/include/freerdp/sspi/sspi.h @@ -17,8 +17,8 @@ * limitations under the License. */ -#ifndef FREERDP_AUTH_SSPI_H -#define FREERDP_AUTH_SSPI_H +#ifndef FREERDP_SSPI_H +#define FREERDP_SSPI_H #include #include @@ -727,4 +727,4 @@ FREERDP_API SECURITY_STATUS VerifySignature(CTXT_HANDLE* phContext, SEC_BUFFER_D void sspi_GlobalInit(); void sspi_GlobalFinish(); -#endif /* FREERDP_AUTH_SSPI_H */ +#endif /* FREERDP_SSPI_H */ diff --git a/libfreerdp-core/transport.c b/libfreerdp-core/transport.c index 32e49a7d1..dd9d2a5c8 100644 --- a/libfreerdp-core/transport.c +++ b/libfreerdp-core/transport.c @@ -39,7 +39,7 @@ #include "fastpath.h" #include "transport.h" -#include +#include #define BUFFER_SIZE 16384 diff --git a/libfreerdp-core/transport.h b/libfreerdp-core/transport.h index ec7498dbd..b9c13570b 100644 --- a/libfreerdp-core/transport.h +++ b/libfreerdp-core/transport.h @@ -31,7 +31,7 @@ typedef struct rdp_transport rdpTransport; #include "tcp.h" #include -#include +#include #include #include diff --git a/libfreerdp-sspi/Kerberos/kerberos.c b/libfreerdp-sspi/Kerberos/kerberos.c index acf527955..4d63f307d 100644 --- a/libfreerdp-sspi/Kerberos/kerberos.c +++ b/libfreerdp-sspi/Kerberos/kerberos.c @@ -43,7 +43,7 @@ #include "kerberos_encode.h" #include "kerberos_decode.h" -#include +#include #include #include #include diff --git a/libfreerdp-sspi/Kerberos/kerberos.h b/libfreerdp-sspi/Kerberos/kerberos.h index 0ecbfe4b0..848d23712 100644 --- a/libfreerdp-sspi/Kerberos/kerberos.h +++ b/libfreerdp-sspi/Kerberos/kerberos.h @@ -17,8 +17,8 @@ * limitations under the License. */ -#ifndef __FREERDP_KRB_H -#define __FREERDP_KRB_H +#ifndef FREERDP_SSPI_KERBEROS_PRIVATE_H +#define FREERDP_SSPI_KERBEROS_PRIVATE_H #include #include @@ -31,7 +31,7 @@ #include #endif -#include +#include #include #include #include @@ -344,4 +344,4 @@ void krb_free_tgsreq(KrbTGSREQ* krb_tgsreq); void krb_free_tgsrep(KrbTGSREP* krb_tgsrep); void krb_free_krb_error(KrbERROR* krb_err); -#endif /* __FREERDP_KRB_H */ +#endif /* FREERDP_SSPI_KERBEROS_PRIVATE_H */ diff --git a/libfreerdp-sspi/Kerberos/kerberos_crypto.h b/libfreerdp-sspi/Kerberos/kerberos_crypto.h index 6652f8991..5074246e6 100644 --- a/libfreerdp-sspi/Kerberos/kerberos_crypto.h +++ b/libfreerdp-sspi/Kerberos/kerberos_crypto.h @@ -17,8 +17,8 @@ * limitations under the License. */ -#ifndef __KRB_CRYPTO_H -#define __KRB_CRYPTO_H +#ifndef FREERDP_SSPI_KERBEROS_CRYPTO_H +#define FREERDP_SSPI_KERBEROS_CRYPTO_H #include #include @@ -53,4 +53,4 @@ rdpBlob* crypto_kdcmsg_decrypt(rdpBlob* msg, KrbENCKey* key, uint32 msgtype); rdpBlob* crypto_kdcmsg_cksum_hmacmd5(rdpBlob* msg, uint8* key, uint32 msgtype); rdpBlob* crypto_kdcmsg_cksum(rdpBlob* msg, KrbENCKey* key, uint32 msgtype); -#endif /* __KRB_CRYPTO_H */ +#endif /* FREERDP_SSPI_KERBEROS_CRYPTO_H */ diff --git a/libfreerdp-sspi/Kerberos/kerberos_decode.h b/libfreerdp-sspi/Kerberos/kerberos_decode.h index d32857fb3..eb3b17b94 100644 --- a/libfreerdp-sspi/Kerberos/kerberos_decode.h +++ b/libfreerdp-sspi/Kerberos/kerberos_decode.h @@ -21,8 +21,8 @@ #include "kerberos.h" -#ifndef __KRB_DECODE_H -#define __KRB_DECODE_H +#ifndef FREERDP_SSPI_KERBEROS_DECODE_H +#define FREERDP_SSPI_KERBEROS_DECODE_H int krb_decode_application_tag(STREAM* s, uint8 tag, int *length); int krb_decode_sequence_tag(STREAM* s, int *length); @@ -44,4 +44,4 @@ int krb_decode_krb_error(STREAM* s, KrbERROR* krb_err, sint32 maxlen); ENCKDCREPPart* krb_decode_enc_reppart(rdpBlob* msg, uint8 apptag); int krb_decode_tgtrep(STREAM* s, KrbTGTREP* krb_tgtrep); -#endif /* __KRB_DECODE_H */ +#endif /* FREERDP_SSPI_KERBEROS_DECODE_H */ diff --git a/libfreerdp-sspi/Kerberos/kerberos_encode.h b/libfreerdp-sspi/Kerberos/kerberos_encode.h index f0fe76656..dcdadebba 100644 --- a/libfreerdp-sspi/Kerberos/kerberos_encode.h +++ b/libfreerdp-sspi/Kerberos/kerberos_encode.h @@ -21,8 +21,8 @@ #include "kerberos.h" -#ifndef __KRB_ENCODE_H -#define __KRB_ENCODE_H +#ifndef FREERDP_SSPI_KERBEROS_ENCODE_H +#define FREERDP_SSPI_KERBEROS_ENCODE_H int krb_encode_sequence_tag(STREAM* s, uint32 len); int krb_encode_contextual_tag(STREAM* s, uint8 tag, uint32 len); @@ -45,4 +45,4 @@ int krb_encode_req_body(STREAM* s, KDCReqBody* req_body, int msgtype); int krb_encode_apreq(STREAM* s, KrbAPREQ* krb_apreq); int krb_encode_tgtreq(STREAM* s, KrbTGTREQ* krb_tgtreq); -#endif /* __KRB_ENCODE_H */ +#endif /* FREERDP_SSPI_KERBEROS_ENCODE_H */ diff --git a/libfreerdp-sspi/NTLM/ntlm.c b/libfreerdp-sspi/NTLM/ntlm.c index fb4b054e4..04f40f243 100644 --- a/libfreerdp-sspi/NTLM/ntlm.c +++ b/libfreerdp-sspi/NTLM/ntlm.c @@ -25,7 +25,7 @@ #include #include -#include +#include #include "ntlm.h" #include "../sspi.h" diff --git a/libfreerdp-sspi/NTLM/ntlm.h b/libfreerdp-sspi/NTLM/ntlm.h index 42bf6a6c0..bfdbfbafe 100644 --- a/libfreerdp-sspi/NTLM/ntlm.h +++ b/libfreerdp-sspi/NTLM/ntlm.h @@ -17,10 +17,10 @@ * limitations under the License. */ -#ifndef FREERDP_AUTH_NTLM_PRIVATE_H -#define FREERDP_AUTH_NTLM_PRIVATE_H +#ifndef FREERDP_SSPI_NTLM_PRIVATE_H +#define FREERDP_SSPI_NTLM_PRIVATE_H -#include +#include #include #include @@ -117,4 +117,4 @@ void ntlm_ContextFree(NTLM_CONTEXT* context); //#define WITH_DEBUG_NTLM 1 -#endif /* FREERDP_AUTH_NTLM_PRIVATE_H */ +#endif /* FREERDP_SSPI_NTLM_PRIVATE_H */ diff --git a/libfreerdp-sspi/NTLM/ntlm_compute.h b/libfreerdp-sspi/NTLM/ntlm_compute.h index 47d1e4615..4ddb323eb 100644 --- a/libfreerdp-sspi/NTLM/ntlm_compute.h +++ b/libfreerdp-sspi/NTLM/ntlm_compute.h @@ -17,8 +17,8 @@ * limitations under the License. */ -#ifndef FREERDP_AUTH_NTLM_COMPUTE_H -#define FREERDP_AUTH_NTLM_COMPUTE_H +#ifndef FREERDP_SSPI_NTLM_COMPUTE_H +#define FREERDP_SSPI_NTLM_COMPUTE_H #include "ntlm.h" diff --git a/libfreerdp-sspi/NTLM/ntlm_message.h b/libfreerdp-sspi/NTLM/ntlm_message.h index ab70fa205..f50629345 100644 --- a/libfreerdp-sspi/NTLM/ntlm_message.h +++ b/libfreerdp-sspi/NTLM/ntlm_message.h @@ -17,8 +17,8 @@ * limitations under the License. */ -#ifndef FREERDP_AUTH_NTLM_MESSAGE_H -#define FREERDP_AUTH_NTLM_MESSAGE_H +#ifndef FREERDP_SSPI_NTLM_MESSAGE_H +#define FREERDP_SSPI_NTLM_MESSAGE_H #include "ntlm.h" @@ -29,4 +29,4 @@ SECURITY_STATUS ntlm_write_ChallengeMessage(NTLM_CONTEXT* context, SEC_BUFFER* b SECURITY_STATUS ntlm_read_AuthenticateMessage(NTLM_CONTEXT* context, SEC_BUFFER* buffer); SECURITY_STATUS ntlm_write_AuthenticateMessage(NTLM_CONTEXT* context, SEC_BUFFER* buffer); -#endif /* FREERDP_AUTH_NTLM_MESSAGE_H */ +#endif /* FREERDP_SSPI_NTLM_MESSAGE_H */ diff --git a/libfreerdp-sspi/Negotiate/negotiate.c b/libfreerdp-sspi/Negotiate/negotiate.c index 31bca4033..3a27eedf3 100644 --- a/libfreerdp-sspi/Negotiate/negotiate.c +++ b/libfreerdp-sspi/Negotiate/negotiate.c @@ -17,7 +17,7 @@ * limitations under the License. */ -#include +#include #include #include "negotiate.h" diff --git a/libfreerdp-sspi/Negotiate/negotiate.h b/libfreerdp-sspi/Negotiate/negotiate.h index d3a3a36f9..1aaeabef5 100644 --- a/libfreerdp-sspi/Negotiate/negotiate.h +++ b/libfreerdp-sspi/Negotiate/negotiate.h @@ -17,10 +17,10 @@ * limitations under the License. */ -#ifndef FREERDP_AUTH_NEGOTIATE_PRIVATE_H -#define FREERDP_AUTH_NEGOTIATE_PRIVATE_H +#ifndef FREERDP_SSPI_NEGOTIATE_PRIVATE_H +#define FREERDP_SSPI_NEGOTIATE_PRIVATE_H -#include +#include #include #include "../Kerberos/kerberos.h" @@ -52,5 +52,5 @@ typedef struct _NEGOTIATE_CONTEXT NEGOTIATE_CONTEXT; NEGOTIATE_CONTEXT* negotiate_ContextNew(); void negotiate_ContextFree(NEGOTIATE_CONTEXT* context); -#endif /* FREERDP_AUTH_NEGOTIATE_PRIVATE_H */ +#endif /* FREERDP_SSPI_NEGOTIATE_PRIVATE_H */ diff --git a/libfreerdp-sspi/credssp.c b/libfreerdp-sspi/credssp.c index 67120345a..67c277e8e 100644 --- a/libfreerdp-sspi/credssp.c +++ b/libfreerdp-sspi/credssp.c @@ -25,8 +25,8 @@ #include #include -#include -#include +#include +#include #include "sspi.h" diff --git a/libfreerdp-sspi/sspi.c b/libfreerdp-sspi/sspi.c index 2f520c130..09ffb4d69 100644 --- a/libfreerdp-sspi/sspi.c +++ b/libfreerdp-sspi/sspi.c @@ -19,7 +19,7 @@ #include -#include +#include #include "sspi.h" diff --git a/libfreerdp-sspi/sspi.h b/libfreerdp-sspi/sspi.h index 88d49b935..c5c09534d 100644 --- a/libfreerdp-sspi/sspi.h +++ b/libfreerdp-sspi/sspi.h @@ -21,7 +21,7 @@ #define FREERDP_AUTH_SSPI_PRIVATE_H #include -#include +#include struct _CREDENTIALS {