Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
b4e33cfc
Commit
b4e33cfc
authored
22 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Removed the long-living compiler warnings on the des_pcbc_encrypt() function
calls!
parent
86742e83
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/krb4.c
+12
-7
12 additions, 7 deletions
lib/krb4.c
with
12 additions
and
7 deletions
lib/krb4.c
+
12
−
7
View file @
b4e33cfc
...
...
@@ -50,6 +50,7 @@
#include
<syslog.h>
#include
<string.h>
#include
<krb.h>
#include
<des.h>
#ifdef HAVE_UNISTD_H
#include
<unistd.h>
/* for getpid() */
...
...
@@ -187,6 +188,10 @@ mk_auth(struct krb4_data *d, KTEXT adat,
return
ret
;
}
#ifdef HAVE_KRB_GET_OUR_IP_FOR_REALM
int
krb_get_our_ip_for_realm
(
char
*
,
struct
in_addr
*
);
#endif
static
int
krb4_auth
(
void
*
app_data
,
struct
connectdata
*
conn
)
{
...
...
@@ -328,7 +333,7 @@ CURLcode Curl_krb_kauth(struct connectdata *conn)
if
(
conn
->
data
->
state
.
buffer
[
0
]
!=
'3'
){
Curl_set_command_prot
(
conn
,
save
);
return
;
return
CURLE_FTP_WEIRD_SERVER_REPLY
;
}
p
=
strstr
(
conn
->
data
->
state
.
buffer
,
"T="
);
...
...
@@ -361,16 +366,16 @@ CURLcode Curl_krb_kauth(struct connectdata *conn)
des_string_to_key
(
conn
->
data
->
state
.
passwd
,
&
key
);
des_key_sched
(
&
key
,
schedule
);
des_pcbc_encrypt
((
des_cblock
*
)
tkt
.
dat
,
(
des_cblock
*
)
tktcopy
.
dat
,
des_pcbc_encrypt
((
void
*
)
tkt
.
dat
,
(
void
*
)
tktcopy
.
dat
,
tkt
.
length
,
schedule
,
&
key
,
DES_DECRYPT
);
if
(
strcmp
((
char
*
)
tktcopy
.
dat
+
8
,
KRB_TICKET_GRANTING_TICKET
)
!=
0
)
{
afs_string_to_key
(
passwd
,
krb_realmofhost
(
conn
->
hostname
),
&
key
);
des_key_sched
(
&
key
,
schedule
);
des_pcbc_encrypt
((
des_cblock
*
)
tkt
.
dat
,
(
des_cblock
*
)
tktcopy
.
dat
,
afs_string_to_key
(
passwd
,
krb_realmofhost
(
conn
->
hostname
),
&
key
);
des_key_sched
(
&
key
,
schedule
);
des_pcbc_encrypt
((
void
*
)
tkt
.
dat
,
(
void
*
)
tktcopy
.
dat
,
tkt
.
length
,
schedule
,
&
key
,
DES_DECRYPT
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment