summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/asn.1
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-182-2/+7
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* asn1buf.h (asn1buf_insert_octet): Use static inline function to defineTheodore Tso1998-02-143-53/+77
| | | | | | | | | | | asn1_insert_octet, since the GCC specific hack we're using doesn't work on GCC compilers that also have Objective C enabled. asn1buf.c: define ASN1BUF_OMIT_INLINE_FUNCS before including asn1buf.h, since we don't want inline functions declared when we're defining the linkable version of the functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10457 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-122-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1buf.c (asn12krb5_buf): Check return value ofTom Yu1998-01-032-0/+9
| | | | | | malloc. [krb5-libs/518] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10345 dc483132-0cff-0310-8789-dd5450dbe970
* Punt HAS_STDLIB_H, NO_STDLIB_H, POSIX_TYPES; see individual ChangeLogsTom Yu1997-10-022-1/+5
| | | | | | for details git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10204 dc483132-0cff-0310-8789-dd5450dbe970
* Changes from the Kerbnet release by CygnusEzra Peisach1997-08-143-19/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | * asn1buf.h (asn1buf_remove_octet, asn1buf_size, asn1buf_free, asn1buf_ensure_space, asn1buf_len): Add macro versions. (asn1buf_insert_octet) [__GNUC__ >= 2]: Ditto, using a GNU C extension. * asn1buf.c (asn1buf_remove_octet, asn1buf_size, asn1buf_free, asn1buf_ensure_space, asn1buf_len, asn1buf_insert_octet): Undef macros before defining as functions. [Kerbnet changes made by raeburn@cygnus.com] * asn1buf.h (asn1buf_expand): Remove "const" from int arg in prototype. * asn1buf.c (asn1buf_remove_charstring, asn1buf_create, asn1buf_remove_octetstring, asn12krb5_buf): Call malloc instead of calloc. (asn1buf_unparse, asn1buf_hex_unparse): Ditto. Also don't allocate extra byte, since sizeof(STRING) does count the trailing null. (asn1buf_expand): Adjust bound based on increment value used, not value specified by caller. [Kerbnet changes made by raeburn@cygnus.com] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10174 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SRCS): Add / after $(srcdir) in SRCS lineEzra Peisach1997-07-312-10/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10149 dc483132-0cff-0310-8789-dd5450dbe970
* Moved some of the library list file build logic from the individual MakefilesRichard Basch1997-02-232-11/+9
| | | | | | to config/win-post.in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9964 dc483132-0cff-0310-8789-dd5450dbe970
* Merge of libhack_branchTom Yu1997-02-093-15/+19
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
* Windows/NT integration (V1_0_WIN32_BRANCH merge)Richard Basch1997-02-062-3/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9788 dc483132-0cff-0310-8789-dd5450dbe970
* asn1_k_encode.c (asn1_encode_principal_name): Be liberal aboutTheodore Tso1996-11-152-9/+35
| | | | | | | | | | | | | | accepting a principal with a zero-length component where the data pointer is NULL. After all, asn1_decode_principal_name generates them that way! [PR#188] (asn1_encode_encrypted_data): (asn1_encode_krb5_authdata_elt): (asn1_encode_encryption_key): (asn1_encode_checksum): (asn1_encode_realm): If the length is zero, allow the data field to be NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9418 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1buf.c (asn12krb5_buf): Initialize magic fields of structure.Ezra Peisach1996-06-272-1/+9
| | | | | | | | | | | | (asn1buf_expand): If pre-allocating memory for future use, store proper end of buffer. This was a big performance hit in asn.1 routines as every time it tried to decode an octet, 200 bytes were allocated (for future use), but the buffer structure pnly thought that one byte was allocated and the next time through would try to allocate memory again. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8553 dc483132-0cff-0310-8789-dd5450dbe970
* Add prototypes for the SAM encoding and decoding functions, which areTheodore Tso1996-06-123-3/+40
| | | | | | necessary for the Win32 port (and a good idea in general). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8329 dc483132-0cff-0310-8789-dd5450dbe970
* cvsignore hackeryTom Yu1996-06-101-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8288 dc483132-0cff-0310-8789-dd5450dbe970
* Updated .Sanitize fileTheodore Tso1996-06-061-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8248 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c (asn1_decode_enc_kdc_rep_part): If starttime isEzra Peisach1996-06-052-1/+7
| | | | | | | | | not sent over the wire, set equal to authtime. The kdc does not return the starttime if it matches the authtime. This shows up readilly with kdc5_hammer.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8231 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode.c (decode_krb5_enc_tkt_part): use tagnum correctly to handleKen Raeburn1996-05-042-3/+10
| | | | | | optional starttime (previous code *always* replaced starttime with authtime.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7889 dc483132-0cff-0310-8789-dd5450dbe970
* log for mark's sam changes of 4/9Ken Raeburn1996-04-301-0/+17
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7871 dc483132-0cff-0310-8789-dd5450dbe970
* add sam encoders, decoders, including "optional string" macrosMark Eichin1996-04-095-0/+380
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7771 dc483132-0cff-0310-8789-dd5450dbe970
* Decode pa_type in the krb5_pa_data structure as a krb5_int32, since itTheodore Tso1996-03-212-2/+7
| | | | | | | | is now type krb5_preauthtype. Decode etype in the krb5_etype_info_entry as krb5_enctype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7691 dc483132-0cff-0310-8789-dd5450dbe970
* Fix 16 bit vs. 32bit error in the encoded timestamp structureTheodore Tso1996-03-212-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7688 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode.c (decode_krb5_ticket, decode_krb5_enc_tkt_part,Ezra Peisach1996-03-133-1/+31
| | | | | | | | | | | | | | | | | | decode_krb5_authenticator, decode_krb5_error, decode_krb5_ap_req, decode_krb5_ap_rep, decode_krb5_ap_rep_enc_part, decode_krb5_safe, decode_krb5_priv, decode_krb5_enc_priv_part, decode_krb5_cred, decode_krb5_enc_part): Add magic values. * asn1_k_decode.c (asn1_decode_passwdsequence): Set magic values in structures. (asn1_decode_kdc_req_body): Set magic in authorization_data if not sent OTW. I believe all magic number fields now being properly initialized in the asn.1 layer. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7619 dc483132-0cff-0310-8789-dd5450dbe970
* If starttime is not set, then use authtime as a default. (This fixesTheodore Tso1996-02-282-0/+9
| | | | | | | the bug where if you try to immediately use a TGT to get a ticket, you get a time skew error.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7558 dc483132-0cff-0310-8789-dd5450dbe970
* Remove junk fileTheodore Tso1996-02-131-31/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7475 dc483132-0cff-0310-8789-dd5450dbe970
* Folded in danw's changes to allow building Makefiles for theTheodore Tso1996-02-072-1/+7
| | | | | | | Macintosh. We now can build MPW makefiles which are interpreted by CodeWarrior. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7444 dc483132-0cff-0310-8789-dd5450dbe970
* Don't require val->salt to be non-zero if val->lenth is zeroTheodore Tso1995-11-091-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7070 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c (asn1_decode_etype_info_entry): If the optionalTheodore Tso1995-11-093-3/+13
| | | | | | | | | | | salt element is not present, set etype.length to -1. * asn1_k_encode.c (asn1_encode_etype_info_entry): When encoding the etype_info_entry structure, use length == -1 to mean that the optional salt structure should not be sent. (It used to be if length == -1.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7067 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode.c (decode_krb5_pa_enc_ts, decode_krb5_enc_data): AddedTheodore Tso1995-11-084-3/+76
| | | | | | | | | | | | new functions. * krb5_encode.c (encode_krb5_pa_enc_ts, encode_krb5_enc_data): Added new functions. KRB5-asn.py (PA-ENC-TS-ENC): Added new definition for the krb5_pa_enc_ts structure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7053 dc483132-0cff-0310-8789-dd5450dbe970
* remove rcs keyword cruft which doesn't make much sense in CVS.Mark Eichin1995-11-031-3/+1
| | | | | | | | removal simplifies merging. I left in the RCSID's that are in actual error table values (*_RCSID typically) but comments had them elided (Source keywords replaced with a literal pathname, Id totally removed.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7014 dc483132-0cff-0310-8789-dd5450dbe970
* Remove ##DOS!include of config/windows.in. config/windows.in is nowTheodore Tso1995-10-072-1/+5
| | | | | | included by wconfig. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6944 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_encode.c (krb5_cleanup): If asn1buf_destroy fails, don'tMark Eichin1995-10-022-1/+5
| | | | | | call it again. (Not that it can ever fail anyhow.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6917 dc483132-0cff-0310-8789-dd5450dbe970
* Systematic rework of all the cleanup code to make the generated objectTheodore Tso1995-09-272-143/+155
| | | | | | | | | file subtatially (40% on the i386 platform) smaller. The cleanup is now handled with a "goto error_out" statement, which prevents the cleanup statements from being replicated many, many, many times throughout the entire file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6863 dc483132-0cff-0310-8789-dd5450dbe970
* Removed "foo:: foo-$(WHAT)" lines from the MakefileTheodore Tso1995-09-252-4/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6860 dc483132-0cff-0310-8789-dd5450dbe970
* Remove the (int) cast, since you can't take address of a value whichTheodore Tso1995-09-233-3/+11
| | | | | | | has been casted. Instead we change the underlying type in the structure to be an int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6834 dc483132-0cff-0310-8789-dd5450dbe970
* 32 bit word being passed as an intTheodore Tso1995-09-235-5/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6823 dc483132-0cff-0310-8789-dd5450dbe970
* Declare cleanup function as void and propogate thoughout the file. This handlesEzra Peisach1995-09-202-10/+16
| | | | | | conflicts with free git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6812 dc483132-0cff-0310-8789-dd5450dbe970
* Don't modify a const input variable val; copy it to a scratch variableTheodore Tso1995-09-182-2/+9
| | | | | | and modify that. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6811 dc483132-0cff-0310-8789-dd5450dbe970
* moderately clean handling of allocated storage on error during partialMark Eichin1995-09-142-95/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | construction, in spite of not having exception handling in the language. * krb5_decode.c (clean_krb5_authenticator, clean_krb5_ticket, clean_krb5_enc_tkt_part,clean_krb5_ap_req, clean_krb5_ap_rep_enc_part, clean_krb5_safe, clean_krb5_priv_enc_part, clean_krb5_cred_enc_part, clean_krb5_error): new static functions to free objects that may be partially constructed. (setup_buf_only, setup_no_tagnum, setup_no_length, setup): define in terms of each other to remove duplication, then add local variable error_cleanup to common declarations. (clean_return): new macro, uses error_cleanup on rep if possible and the allows the argument to be returned. (alloc_field, check_apptag, next_tag, begin_structure, get_field_body, get_field, get_lenfield_body, get_lenfield): use clean_return. (free_field): new macro to simplify the writing of clean_*. (clear_field): macro to clean up preparation of fields for later use by clean_* functions. (decode_krb5_authenticator, decode_krb5_ticket, decode_krb5_encryption_key, decode_krb5_enc_tkt_part, decode_krb5_enc_kdc_rep_part, decode_krb5_as_rep, decode_krb5_tgs_rep, decode_krb5_ap_req, decode_krb5_ap_rep, decode_krb5_ap_rep_enc_part, decode_krb5_as_req, decode_krb5_tgs_req, decode_krb5_kdc_req_body, decode_krb5_safe, decode_krb5_priv, decode_krb5_enc_priv_part, decode_krb5_cred, decode_krb5_enc_cred_part, decode_krb5_error, decode_krb5_authdata, decode_krb5_pwd_sequence, decode_krb5_pwd_data, decode_krb5_padata_sequence, decode_krb5_alt_method, decode_krb5_etype_info): change setup macro to pass a cleanup method (or just free if there were no partial allocations, or 0 for the two cases with no allocation at all.) Also explicitly zero pointer subfields, since calloc is not a safe way to assure that. Generally, provide for automatic deallocation of storage on error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6785 dc483132-0cff-0310-8789-dd5450dbe970
* Reinstate the keytype -> enctype changes and keep the new Mac changesEzra Peisach1995-09-126-18/+24
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6761 dc483132-0cff-0310-8789-dd5450dbe970
* Mac Beta 1 submissionKeith Vetter1995-09-117-21/+35
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6749 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c, asn1_k_decode.h, asn1_k_encode.c, asn1_k_encode.h,Chris Provenzano1995-09-067-25/+29
| | | | | | * krb5_decode.c, krb5_encode.c: s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6721 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c, asn1_k_decode.h, asn1_k_encode.c, asn1_k_encode.hChris Provenzano1995-09-066-22/+24
| | | | | | | * krb5_decode.c : Remove krb5_enctype references, and replace with krb5_keytype where appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6682 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_decode.c (decode_krb5_alt_method, decode_krb5_etype_info): NewTheodore Tso1995-08-288-0/+171
| | | | | | | | | | | | | | | | | functions for decoding some new data structures. krb5_encode.c (encode_krb5_alt_method, encode_krb5_etype_info): New functions for encoding some new data structures. asn1_k_decode.c (asn1_decode_etype_info_entry, asn1_decode_etype_info): Added new functions to decode some new data structures. asn1_k_encode.c (asn1_encode_etype_info_entry, asn1_encode_etype_info): Added new functions to encode some new data structures. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6606 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_encode.c (encode_krb5_padata_sequence): New function which encodes aTheodore Tso1995-08-265-1/+44
| | | | | | | | | | | | | | | sequence of pa_data elements krb5_decode.c (decode_krb5_padata_sequence): New function which decodes a sequence of pa_data elements. asn1_k_encode.c (asn1_encode_sequence_of_pa_data): Make it possible to encode sequence of zero pa_data elements. asn1_k_decode.c (decode_array_body): Make it possible to decode SEQUENCE OF encodinges of zero items (which is legal according to ASN.1) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6593 dc483132-0cff-0310-8789-dd5450dbe970
* Added final change to allow for ASN.1 indefinite encoding; needed forTheodore Tso1995-06-172-0/+11
| | | | | | DCE compatibility. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6088 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Remove standardized set of autoconf macros, which areTheodore Tso1995-06-092-3/+5
| | | | | | now handled by CONFIG_RULES. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6025 dc483132-0cff-0310-8789-dd5450dbe970
* Add support for building shared librariesTheodore Tso1995-05-273-5/+19
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5904 dc483132-0cff-0310-8789-dd5450dbe970
* Rearrange #include files so that krb5.h gets included first, so thatTheodore Tso1995-05-233-2/+12
| | | | | | | the debugging information can be more efficiently collapsed since the type numbers will be the same. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5853 dc483132-0cff-0310-8789-dd5450dbe970
* Back out ASN.1 library changes (which were incorrect)Theodore Tso1995-04-224-223/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5453 dc483132-0cff-0310-8789-dd5450dbe970
* Fix BACKWARD_BITMASK_COMPAT so that it doesn't break user-to-userTheodore Tso1995-04-222-9/+106
| | | | | | | | | | authentication. Unfortunately, this breaks proxy tickets (and renewable tickets continue to be broken if BACKWARD_BITMASK_COMPAT is defined; nothing can be done by this.) Sites should only define BACKWARD_BITMASK_COMPAT if they have an installed base of broken implementations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5431 dc483132-0cff-0310-8789-dd5450dbe970