summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-10-06 19:24:56 +0000
committerGreg Hudson <ghudson@mit.edu>2011-10-06 19:24:56 +0000
commitd9ed152c4ba1fc5b8d2ca6f894e25e449d685c0c (patch)
tree798860aa39c9294677f2360e5894f1825174811b /src/include
parent9490252d18b93f3fe02b0977510908a7dbbd45b1 (diff)
downloadkrb5-d9ed152c4ba1fc5b8d2ca6f894e25e449d685c0c.tar.gz
krb5-d9ed152c4ba1fc5b8d2ca6f894e25e449d685c0c.tar.xz
krb5-d9ed152c4ba1fc5b8d2ca6f894e25e449d685c0c.zip
Ditch fast_factor.h since it contains only stubs
Leave a comment behind where we called fast_set_kdc_verified(). Remove the call to fast_kdc_replace_reply_key() since it's wrong (encrypted challenge doesn't replace the reply key in that sense). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25317 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/fast_factor.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/include/fast_factor.h b/src/include/fast_factor.h
deleted file mode 100644
index 32581bd44..000000000
--- a/src/include/fast_factor.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
-/* include/fast_factor.h - Convenience inline functions for FAST factors */
-/*
- * Copyright (C) 2011 by the Massachusetts Institute of Technology.
- * All rights reserved.
- *
- * Export of this software from the United States of America may
- * require a specific license from the United States Government.
- * It is the responsibility of any person or organization contemplating
- * export to obtain such a license before exporting.
- *
- * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
- * distribute this software and its documentation for any purpose and
- * without fee is hereby granted, provided that the above copyright
- * notice appear in all copies and that both that copyright notice and
- * this permission notice appear in supporting documentation, and that
- * the name of M.I.T. not be used in advertising or publicity pertaining
- * to distribution of the software without specific, written prior
- * permission. Furthermore if you modify this software you must label
- * your software as modified software and not distribute it in such a
- * fashion that it might be confused with the original M.I.T. software.
- * M.I.T. makes no representations about the suitability of
- * this software for any purpose. It is provided "as is" without express
- * or implied warranty.
- */
-
-#ifndef FAST_FACTOR_H
-
-static inline krb5_error_code
-fast_kdc_replace_reply_key(krb5_context context,
- krb5_kdcpreauth_callbacks cb,
- krb5_kdcpreauth_rock rock)
-{
- return 0;
-}
-
-static inline krb5_error_code
-fast_set_kdc_verified(krb5_context context,
- krb5_clpreauth_callbacks cb,
- krb5_clpreauth_rock rock)
-{
- return 0;
-}
-
-#endif /* FAST_FACTOR_H */
#39;: s = s + n[1:] else: s = s + n if self.items[n]: s = s + "=" + self.items[n] s = s + '\n' for cl in self.images: s = s + "\n%s=%s\n" % (cl.imageType, cl.path) s = s + cl.__repr__(1) return s def addEntry(self, item, val = None, replace = 1): if not self.items.has_key(item): self.order.append(item) elif not replace: return if (val): self.items[item] = str(val) else: self.items[item] = None def getEntry(self, item): return self.items[item] def delEntry(self, item): newOrder = [] for i in self.order: if item != i: newOrder.append(i) self.order = newOrder del self.items[item] def testEntry(self, item): if self.items.has_key(item): return 1 else: return 0 def getImage(self, label): for config in self.images: if config.getEntry('label') == label: return (config.imageType, config) raise IndexError, "unknown image %s" % (label,) def addImage (self, config): # make sure the config has a valid label config.getEntry('label') if not config.path or not config.imageType: raise ValueError, "subconfig missing path or image type" self.images.append(config) def delImage (self, label): for config in self.images: if config.getEntry('label') == label: self.images.remove (config) return raise IndexError, "unknown image %s" % (label,) def listImages (self): l = [] for config in self.images: l.append(config.getEntry('label')) return l def getPath (self): return self.path def write(self, file, perms = 0644): f = open(file, "w") f.write(self.__repr__()) f.close() os.chmod(file, perms) def read (self, file): f = open(file, "r") image = None for l in f.readlines(): l = l[:-1] orig = l while (l and (l[0] == ' ' or l[0] == '\t')): l = l[1:] if not l: continue if l[0] == '#': self.order.append('#' + orig)