summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-15 17:17:09 +0100
committerAndrew Bartlett <abartlet@samba.org>2010-12-21 15:10:37 +1100
commit13fa6743d86ef6e51b3243cf3045242850358b43 (patch)
tree78b8b495848ad5478bd44d04012f0ffe1be23c2a /source3/libsmb
parent464b8fa3173de7cc801195a28b84786cb1c63833 (diff)
downloadsamba-13fa6743d86ef6e51b3243cf3045242850358b43.tar.gz
samba-13fa6743d86ef6e51b3243cf3045242850358b43.tar.bz2
samba-13fa6743d86ef6e51b3243cf3045242850358b43.zip
s3/s4:auth SPNEGO - adaptions for the removed "const" from OIDs
This is needed in order to suppress warnings.
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clispnego.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c
index 9ef848b59c..382a29ac65 100644
--- a/source3/libsmb/clispnego.c
+++ b/source3/libsmb/clispnego.c
@@ -125,9 +125,7 @@ bool spnego_parse_negTokenInit(TALLOC_CTX *ctx,
asn1_start_tag(data,ASN1_CONTEXT(0));
asn1_start_tag(data,ASN1_SEQUENCE(0));
for (i=0; asn1_tag_remaining(data) > 0 && i < ASN1_MAX_OIDS-1; i++) {
- const char *oid_str = NULL;
- asn1_read_OID(data,ctx,&oid_str);
- OIDs[i] = CONST_DISCARD(char *, oid_str);
+ asn1_read_OID(data,ctx, &OIDs[i]);
}
OIDs[i] = NULL;
asn1_end_tag(data);