summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_condition.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-29 09:19:15 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-29 09:19:15 +0000
commit4574cf872b0efe4e0b6ef180a5e273fccf0b628e (patch)
tree5a7cfc28983ed2e26680686bc23eb47de95fa813 /test/ruby/test_condition.rb
parent8c2372933098e73a549e0c8ce7c9edc94c03e38a (diff)
downloadruby-4574cf872b0efe4e0b6ef180a5e273fccf0b628e.tar.gz
ruby-4574cf872b0efe4e0b6ef180a5e273fccf0b628e.tar.xz
ruby-4574cf872b0efe4e0b6ef180a5e273fccf0b628e.zip
* time.c (time_strftime): format should be ascii compatible.
* parse.y (rb_intern3): non ASCII compatible symbols. * re.c (rb_reg_regsub): add encoding check. * string.c (rb_str_chomp_bang): ditto. * test/ruby/test_utf16.rb (TestUTF16::test_chomp): raises exception. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_condition.rb')
0 files changed, 0 insertions, 0 deletions
lass="hl com"> * this software for any purpose. It is provided "as is" without express * or implied warranty. * * * krb5_decrypt_tkt_part() function. */ #include "k5-int.h" /* Decrypts dec_ticket->enc_part using *srv_key, and places result in dec_ticket->enc_part2. The storage of dec_ticket->enc_part2 will be allocated before return. returns errors from encryption routines, system errors */ krb5_error_code KRB5_CALLCONV krb5_decrypt_tkt_part(krb5_context context, const krb5_keyblock *srv_key, register krb5_ticket *ticket) { krb5_enc_tkt_part *dec_tkt_part; krb5_data scratch; krb5_error_code retval; if (!krb5_c_valid_enctype(ticket->enc_part.enctype)) return KRB5_PROG_ETYPE_NOSUPP; scratch.length = ticket->enc_part.ciphertext.length; if (!(scratch.data = malloc(ticket->enc_part.ciphertext.length))) return(ENOMEM); /* call the encryption routine */ if ((retval = krb5_c_decrypt(context, srv_key, KRB5_KEYUSAGE_KDC_REP_TICKET, 0, &ticket->enc_part, &scratch))) { free(scratch.data); return retval; } #define clean_scratch() {memset(scratch.data, 0, scratch.length); \ free(scratch.data);} /* now decode the decrypted stuff */ retval = decode_krb5_enc_tkt_part(&scratch, &dec_tkt_part); if (!retval) { ticket->enc_part2 = dec_tkt_part; } clean_scratch(); return retval; }