vfs: check userland buffers before reading them.
[haiku.git] / headers / private / mail / crypt.h
blob1d740596610f2c25bb6e9918e344b07be5d97ab8
1 /* crypt - simple encryption algorithm used for passwords
3 * Copyright 2001 Dr. Zoidberg Enterprises. All rights reserved.
4 */
5 #ifndef ZOIDBERG_CRYPT_H
6 #define ZOIDBERG_CRYPT_H
9 #define PASSWORD_LENGTH 32
12 char *get_passwd(const BMessage *msg,const char *name);
13 bool set_passwd(BMessage *msg,const char *name,const char *password);
15 void passwd_crypt(char *in,char *out,int length);
17 #endif /* ZOIDBERG_CRYPT_H */