Skip to content

Commit

Permalink
GSSAPI: private export mechanisms OIDs. OS400: Make RPG binding up to…
Browse files Browse the repository at this point in the history
… date.
  • Loading branch information
Patrick Monnerat committed Jul 23, 2014
1 parent 2cd0c2d commit 8efc11a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
9 changes: 9 additions & 0 deletions lib/config-os400.h
Expand Up @@ -175,6 +175,15 @@
/* Define if you have GSS API. */
#define HAVE_GSSAPI

/* Define if you have the GNU gssapi libraries */
#undef HAVE_GSSGNU

/* Define if you have the Heimdal gssapi libraries */
#define HAVE_GSSHEIMDAL

/* Define if you have the MIT gssapi libraries */
#undef HAVE_GSSMIT

/* Define if you have the `ucb' library (-lucb). */
#undef HAVE_LIBUCB

Expand Down
6 changes: 3 additions & 3 deletions lib/curl_gssapi.c
Expand Up @@ -27,10 +27,10 @@
#include "curl_gssapi.h"
#include "sendf.h"

static const char spengo_oid_bytes[] = "\x2b\x06\x01\x05\x05\x02";
gss_OID_desc spnego_mech_oid = { 6, &spengo_oid_bytes };
static const char spnego_oid_bytes[] = "\x2b\x06\x01\x05\x05\x02";
gss_OID_desc Curl_spnego_mech_oid = { 6, &spnego_oid_bytes };
static const char krb5_oid_bytes[] = "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02";
gss_OID_desc krb5_mech_oid = { 9, &krb5_oid_bytes };
gss_OID_desc Curl_krb5_mech_oid = { 9, &krb5_oid_bytes };

OM_uint32 Curl_gss_init_sec_context(
struct SessionHandle *data,
Expand Down
8 changes: 4 additions & 4 deletions lib/curl_gssapi.h
Expand Up @@ -40,12 +40,12 @@
#endif

#ifndef SPNEGO_MECHANISM
CURL_EXTERN gss_OID_desc spnego_mech_oid;
#define SPNEGO_MECHANISM &spnego_mech_oid
extern gss_OID_desc Curl_spnego_mech_oid;
#define SPNEGO_MECHANISM &Curl_spnego_mech_oid
#endif
#ifndef KRB5_MECHANISM
CURL_EXTERN gss_OID_desc krb5_mech_oid;
#define KRB5_MECHANISM &krb5_mech_oid
extern gss_OID_desc Curl_krb5_mech_oid;
#define KRB5_MECHANISM &Curl_krb5_mech_oid
#endif

/* Common method for using GSS-API */
Expand Down
9 changes: 5 additions & 4 deletions packages/OS400/curl.inc.in
Expand Up @@ -94,7 +94,7 @@
d CURL_VERSION_NTLM...
d c X'00000010'
d CURL_VERSION_GSSNEGOTIATE...
d c X'00000020'
d c X'00000020' Deprecated
d CURL_VERSION_DEBUG...
d c X'00000040'
d CURL_VERSION_ASYNCHDNS...
Expand All @@ -117,6 +117,8 @@
d c X'00008000'
d CURL_VERSION_HTTP2...
d c X'00010000'
d CURL_VERSION_GSSAPI...
d c X'00020000'
*
d HTTPPOST_FILENAME...
d c X'00000001'
Expand Down Expand Up @@ -152,7 +154,7 @@
d CURLAUTH_BASIC c X'00000001'
d CURLAUTH_DIGEST...
d c X'00000002'
d CURLAUTH_GSSNEGOTIATE...
d CURLAUTH_NEGOTIATE...
d c X'00000004'
d CURLAUTH_NTLM c X'00000008'
d CURLAUTH_DIGEST_IE...
Expand Down Expand Up @@ -362,8 +364,7 @@
d c 14
d CURLE_FTP_CANT_GET_HOST...
d c 15
d CURLE_OBSOLETE16...
d c 16
d CURLE_HTTP2 c 16
d CURLE_FTP_COULDNT_SET_TYPE...
d c 17
d CURLE_PARTIAL_FILE...
Expand Down

0 comments on commit 8efc11a

Please sign in to comment.