File: language.h

package info (click to toggle)
snowdrop 0.02b-17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 312 kB
  • sloc: ansic: 2,251; makefile: 288
file content (54 lines) | stat: -rw-r--r-- 1,675 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*

   snowdrop - text watermarking and watermark recovery
   ---------------------------------------------------

   Copyright (C) 2002 by Michal Zalewski <lcamtuf@coredump.cx>

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   As a special exception, this program may be linked with the
   OpenSSL library, despite that library's more restrictive license.

   Common language engine API.

*/

#ifndef HAVE_LANGUAGE_H
#define HAVE_LANGUAGE_H

#define MAXBUF 4096

#define DOMAIN_WHITE     0	// Whitespaces, comments
#define DOMAIN_GRAMMAR   1	// Grammar changes (and typos)
#define DOMAIN_FORMAT    2	// Formatting, notation
#define DOMAIN_SYNONYMS  3	// Synonyms / name substitution


void  set_original(const char* buf);
void  set_watermarked(const char* buf);
char* get_orig_atom(void);
char* get_water_atom(void);
int   get_storage(const char* orig, const int domain);
char* set_value(const char* orig,int value, const int domain);
int   get_value(const char* orig,const char* water,int* src,int* va,char test);
int   get_water_pos(void);
void  set_water_pos(int x);
char* get_langdesc(void);

// Helpers.
unsigned int md5_importantstuff(void);
void  module_help(void);
void  md5_wrong(void);

#define fatal(x...) exit( ( fputs("[-] FATAL: ",stderr) + \
                            fprintf(stderr,x) + \
                            fputs("\n\n",stderr) ) != 0 )


#define debug(x...) fprintf(stderr,x)                            

#endif /* not HAVE_LANGUAGE_H */