| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
asn1_decode_generaltime() so that compilers like Ultrix cc that
don't support prototypes within function bodies don't break
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5246 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
| |
(clean-mac): Add.
* asn1_misc.c: Avoid <malloc.h> and <memory.h> includes, for Mac.
(asn1_krb5_realm_copy): Use malloc, not calloc, since we're
about to clobber the storage anyway.
* configure.in (WITH_KRB5ROOT): Remove, not needed.
* krbasn1.h: Document that <limits.h> is needed for INT_MAX.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5154 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
asn1_octet. ANSI C narrow types screws us again....
(The RS/6000 compiler blew out until this was fixed....)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5107 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5088 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5056 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5007 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4970 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4969 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
krb5_encode.h and krb5_decode.h have been poured into include/krb5/asn1.h.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4938 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4904 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
| |
* asn1_decode_k.h => asn1_k_decode.h
* asn1_encode_k.c => asn1_k_encode.c
* asn1_encode_k.h => asn1_k_encode.h
* Makefile.sane.in, krb5_decode.c, krb5_encode.c,
asn1_k_encode.c, asn1_k_decode.c: updated to match.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4885 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4876 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4809 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4702 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
asn1_decode_checksum, asn1_decode_encrypted_data,
asn1_decode_transited_encoding,
asn1_decode_enc_kdc_rep_part, asn1_decode_ticket,
asn1_decode_kdc_req, asn1_decode_kdc_req_body,
asn1_decode_safe_body, asn1_decode_host_address,
asn1_decode_kdc_rep, asn1_decode_authdata_elt,
asn1_decode_krb_cred_info, asn1_decode_pa_data,
asn1_decode_last_req_entry): Initialize magic number field
in the relevant structures.
asn1_decode_k.c (asn1_decode_encryption_key): Add appropriate
magic number and encryption type.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4672 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4622 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4595 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4576 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
is not present, fill in the authorization data fields with all zeros.
Don't set kvno (that's *key* version number, not *Kerberos* version
number) to 5.
err2kerr.c (KRB5_KRB__ERROR2krb5_error): The e_data field wasn't being
decoded when it should have been.
qbuf2data.c (qbuf2krb5_data): Set magic number field to zero.
tgrq2ktgrq.c (KRB5_KDC__REQ__BODY2krb5_kdc_req): Allow the service
principal to be optional.
ktgrq2tgrq.c (krb5_kdc_req2KRB5_KDC__REQ__BODY): ditto
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4536 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4485 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4450 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
asn1_remove_charstring or asn1_remove_octetstring. This means we do
the same thing no matter whether the system returns NULL for malloc(0) or not.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4376 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4359 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
Initialize return variable in decode_krb5_authdata()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4327 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4191 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
| |
2) Allow the enc_kdc_rep_part structure to have a ASN.1 tag of either
25 (AS REP) or 26 (TGS REP). Unfortunately, old versions of Kerberos
always use TGS REP (#26), so we can't change the encoder with breaking
compatibility. Sigh....
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4175 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4166 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4145 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
Internals of ASN.1 code cleaned up a bit in the process....
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4121 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4085 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4045 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
of realloc(NULL) returning NULL
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4032 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4010 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
| |
bomb if val->tr_contents.dlength == 0
* asn1_decode_k.c (asn1_decode_encrypted_data): oops looks like
Harry made a brain fart here.... default value for kvno was 5, not
0.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3995 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3973 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
length != 0
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3970 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
krb5_pa_data structure can be NULL (e.g.
salt_type==KRB5_KDB_SALTTYPE_V4), and the encoder was treating
this as a missing required field
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3962 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
* asn1buf.c: whee SunOS realloc of a NULL pointer returns NULL.
sigh.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3961 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
that can call calloc with a zero argument won't return ENOMEM if
calloc retuns NULL in this case. This was prompted by breakage
under linux.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3956 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
| |
Solaris, and many systems don't even have it) in generaltime encoder.
Use gmt_mktime in generaltime decoder.
With these changes, kinit works again under Solaris 2.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3953 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
| |
* asn1buf.c:
* krbasn1.h: punt stdlib.h in favor of stdio.h. It looks like
Harry was assuming that NULL gets defined in stdlib instead of
stdio
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3949 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3943 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3940 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Major changes, but localized...
* configure.in: redo "autoconf frobbage" since the old way didn't
work with srcdir. Now, AC_OUTPUT generates all three Makefiles,
and ISODEMAKEFILE is subst'ed in to be either Makefile.isode or
Makefile.sane. EXTRA_RULES_IN is used to append the extra stuff to
the end of the "real" one of the two.
* configure.in: krb5_encode.h and krb5_encode.h are source, not
generated, so use CopySrcHeader instead.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3939 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3937 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3936 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3924 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3923 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
CONFIG_RULES around so that they preceed anything that even
vaguely resembles a compile test. This is so that $CC will get
set properly before any compile tests run.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3918 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
* Makefile.in (in all subdirs): added CC=@CC@ to nail down the
substitution to be sure that configuration matches build. Added
CCOPTS to some of them so that it gets nailed in correctly too.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3887 dc483132-0cff-0310-8789-dd5450dbe970
|