gss: make IS_DCE_STYLE an inline function
To avoid future regressions such as the one corrected in 0dd19003
, make
IS_DCE_STYLE() an inline function (rather than a macro) so that its
argument is typed.
This commit is contained in:
@@ -58,7 +58,6 @@ typedef struct gsskrb5_ctx {
|
|||||||
struct krb5_auth_context_data *auth_context;
|
struct krb5_auth_context_data *auth_context;
|
||||||
struct krb5_auth_context_data *deleg_auth_context;
|
struct krb5_auth_context_data *deleg_auth_context;
|
||||||
krb5_principal source, target;
|
krb5_principal source, target;
|
||||||
#define IS_DCE_STYLE(ctx) (((ctx)->flags & GSS_C_DCE_STYLE) != 0)
|
|
||||||
OM_uint32 flags;
|
OM_uint32 flags;
|
||||||
enum { LOCAL = 1, OPEN = 2,
|
enum { LOCAL = 1, OPEN = 2,
|
||||||
COMPAT_OLD_DES3 = 4,
|
COMPAT_OLD_DES3 = 4,
|
||||||
@@ -90,6 +89,12 @@ typedef struct gsskrb5_ctx {
|
|||||||
krb5_crypto crypto;
|
krb5_crypto crypto;
|
||||||
} *gsskrb5_ctx;
|
} *gsskrb5_ctx;
|
||||||
|
|
||||||
|
static inline krb5_boolean
|
||||||
|
IS_DCE_STYLE(gsskrb5_ctx ctx)
|
||||||
|
{
|
||||||
|
return (ctx->flags & GSS_C_DCE_STYLE) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
krb5_principal principal;
|
krb5_principal principal;
|
||||||
char *destination_realm; /* Realm of acceptor service, if delegated */
|
char *destination_realm; /* Realm of acceptor service, if delegated */
|
||||||
|
Reference in New Issue
Block a user