summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1991-04-30 13:12:30 +0000
committerJohn Kohl <jtkohl@mit.edu>1991-04-30 13:12:30 +0000
commit2c85d9e7e475b15dc1b54354b8e0dd5df1c560ba (patch)
tree38cb14c03d93e051183be69ff2c1441524a5be6b /src
parent5318a151c0d8c93dead3358ab5472a49270b350d (diff)
downloadkrb5-2c85d9e7e475b15dc1b54354b8e0dd5df1c560ba.tar.gz
krb5-2c85d9e7e475b15dc1b54354b8e0dd5df1c560ba.tar.xz
krb5-2c85d9e7e475b15dc1b54354b8e0dd5df1c560ba.zip
add krb5_princ_aref
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2068 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/include/krb5/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/krb5/macros.h b/src/include/krb5/macros.h
index 83e6f2dc5..997aa6403 100644
--- a/src/include/krb5/macros.h
+++ b/src/include/krb5/macros.h
@@ -16,4 +16,6 @@
#ifndef KRB5_MACROS__
#define KRB5_MACROS__
+#define krb5_princ_aref(princ, n, plen) (char *)(*plen = princ[n]->length, princ[n]->data)
+
#endif /* KRB5_MACROS__ */