Back to index

opendkim  2.6.4
t-testdata.h
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 2007, 2008 Sendmail, Inc. and its suppliers.
00003 **    All rights reserved.
00004 **
00005 **  Copyright (c) 2009-2012, The OpenDKIM Project.  All rights reserved.
00006 */
00007 
00008 #ifndef lint
00009 static char t_testdata_h[] = "@(#)$Id: t-testdata.h,v 1.2 2010/07/23 01:54:20 cm-msk Exp $";
00010 #endif /* !lint */
00011 
00012 
00013 #define       CRLF          "\r\n"
00014 #define       SP            " "
00015 
00016 #define       LARGEBODYSIZE 65536
00017 #define       LARGELINESIZE 4100
00018 
00019 #define       KEYFILE              "/var/tmp/testkeys"
00020 
00021 #define       JOBID         "testing"
00022 #define       SELECTOR      "test"
00023 #define       SELECTOR2     "brisbane"
00024 #define       SELECTOR256   "sha256only"
00025 #define       SELECTORBADH  "badh"
00026 #define       SELECTORBADK  "badk"
00027 #define       SELECTORBADV  "badv"
00028 #define       SELECTORNOK   "nok"
00029 #define       SELECTORNOP   "nop"
00030 #define       SELECTOREMPTYP       "emptyp"
00031 #define       SELECTORCORRUPTP "corruptp"
00032 #define       DOMAIN        "example.com"
00033 #define       DOMAIN2              "sendmail.com"
00034 #define       REPLYADDRESS  "postmaster"
00035 #define       SMTPTOKENENC  "=5BDKIM=20error=5D"
00036 #define       SMTPTOKEN     "[DKIM error]"
00037 #define       USER          "msk"
00038 
00039 #define       HEADER01      "Received: received data 0"
00040 #define       HEADER02      "Received: received data 1"
00041 #define       HEADER03      "Received: received data 2"
00042 #define       HEADER04      "Received: received data 3 part 1\r\n\t data 3 part 2"
00043 #define       HEADER04UNWRAP       "Received: received data 3 part 1 data 3 part 2"
00044 #define       HEADER05      "From: Murray S. Kucherawy <msk@sendmail.com>"
00045 #define       HEADER06      "To: Sendmail Test Address <sa-test@sendmail.net>"
00046 #define       HEADER07      "Date: Thu, 05 May 2005 11:59:09 -0700"
00047 #define       HEADER07XLEADSP      "Date:   Thu, 05 May 2005 11:59:09 -0700"
00048 #define       HEADER07NOLEADSP "Date:Thu, 05 May 2005 11:59:09 -0700"
00049 #define       HEADER08      "Subject: DKIM test message"
00050 #define       HEADER09      "Message-ID: <439094BF.5010709@sendmail.com>"
00051 #define       HEADER10      "Cc: user@example.com"
00052 
00053 #define       BODY00        "This is a message body.  Fun!\r\n"
00054 #define       BODY01        "Here is a second line.\r\n"
00055 #define       BODY01A              "Here is a line"
00056 #define       BODY01B              " that is broken up across calls.\r"
00057 #define       BODY01C              "\n"
00058 #define       BODY01D              "Now we can try something interesting, like a\r\nmulti-line buffer.  This should not be mangled.\r\n"
00059 #define       BODY01E              "And a line with a trailing space: \r\n"
00060 #define       BODY02        "Next we'll try a blank.\r\n"
00061 #define       BODY03        "\r\n"
00062 #define       BODY04        "Next we'll try multiple blanks.\r\n"
00063 #define       BODY05        "Finally we'll try multiple trailing blanks.\r\n"
00064 #define       BODY06        "Surprise, more data!\r\n"
00065 
00066 #define       NBODY00              "This is a message body.  Fun!\n"
00067 #define       NBODY01              "Here is a second line.\r"
00068 #define       NBODY01A      "Here is a line"
00069 #define       NBODY01B      " that is broken up across calls.\r"
00070 #define       NBODY01C      "\n"
00071 #define       NBODY01D      "Now we can try something interesting, like a\nmulti-line buffer.  This should not be mangled.\r\n"
00072 #define       NBODY01E      "And a line with a trailing space: \n"
00073 #define       NBODY02              "Next we'll try a blank.\r"
00074 #define       NBODY03              "\r\n"
00075 #define       NBODY04              "Next we'll try multiple blanks.\r\n"
00076 #define       NBODY05              "Finally we'll try multiple trailing blanks.\r"
00077 
00078 #define THEADER00    "Received: from client1.football.example.com  [192.0.2.1]\r\n" \
00079        "      by submitserver.example.com with SUBMISSION;\r\n" \
00080        "      Fri, 11 Jul 2003 21:01:54 -0700 (PDT)"
00081 #define       THEADER01     "From: Joe SixPack <joe@football.example.com>"
00082 #define THEADER02    "To: Suzie Q <suzie@shopping.example.net>"
00083 #define THEADER03    "Subject: Is dinner ready?"
00084 #define THEADER04    "Date: Fri, 11 Jul 2003 21:00:37 -0700 (PDT)"
00085 #define       THEADER05     "Message-ID: <20030712040037.46341.5F8J@football.example.com>"
00086 #define       TBODY         "Hi.\r\n" \
00087                      "\r\n" \
00088                      "We lost the game. Are you hungry yet?\r\n" \
00089                      "\r\n" \
00090                      "Joe.\r\n"
00091 
00092 #define KEY          "-----BEGIN RSA PRIVATE KEY-----\n" \
00093        "MIICXQIBAAKBgQC4GUGr+d/6SFNzVLYpphnRd0QPGKz2uWnV65RAxa1Pw352Bqiz\n" \
00094        "qiKOBjgYGzj8pJQSs8tOvv/2k6jpI809RnESqOFgF0gu3UJbNnu3+cd8k/kiQj+q\n" \
00095        "4cKKRpAT92ccxc7svhCNgN1sBGmROYZuysG3Vu3Dyc079gSLtnSrgXb+gQIDAQAB\n" \
00096        "AoGAemlI0opm1Kvs2T4VliH8/tvX5FXbBH8LEZQAUwVeFTB/UQlieXyCV39pIxZO\n" \
00097        "0Sa50qm8YNL9rb5HTSZiHQFOwyAKNqS4m/7JCsbuH4gQkPgPF561BHNL9oKfYgJq\n" \
00098        "9P4kEFfDTBoXKBMxwWtT7AKV8dYvCa3vYzPQ/1BnqQdw2zECQQDyscdgR9Ih59PQ\n" \
00099        "b72ddibdsxS65uXS2vzYLe7SKl+4R5JgJzw0M6DTAnoYFf6JAsKGZM15PCC0E16t\n" \
00100        "RRo47U9VAkEAwjEVrlQ0/8yPACbDggDJg/Zz/uRu1wK0zjqj4vKjleubaX4SEvj7\n" \
00101        "r6xxZm9hC1pMJAC9y3bbkbgCRBjXfyY6fQJBANe5aq2MaZ41wTOPf45NjbKXEiAo\n" \
00102        "SbUpboKCIbyyaa8V/2h0t7D3C0dE9l4efsguqdZoF7Rh2/f1F70QpYRgfJkCQQCH\n" \
00103        "oRrAeGXP50JVW72fNgeJGH/pnghgOa6of0JpxwhENJuGMZxUDfxTtUA6yD3iXP3j\n" \
00104        "A3WL/wbaHsfOYf9Y+g1NAkAGLhx67Ah+uBNK4Xvfz0YPGINX20m+CMsxAw7FOaNv\n" \
00105        "IW2oWFfZCB4APkIis79Ql45AHpavwx5XodBMzZwJUvlL\n" \
00106        "-----END RSA PRIVATE KEY-----\n"
00107 #define       PUBLICKEY     "v=DKIM1; k=rsa; t=y:s; h=sha1:sha256; p=" \
00108        "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4GUGr+d/6SFNzVLYpphnRd0QP" \
00109        "GKz2uWnV65RAxa1Pw352BqizqiKOBjgYGzj8pJQSs8tOvv/2k6jpI809RnESqOFg" \
00110        "F0gu3UJbNnu3+cd8k/kiQj+q4cKKRpAT92ccxc7svhCNgN1sBGmROYZuysG3Vu3D" \
00111        "yc079gSLtnSrgXb+gQIDAQAB"
00112 #define       PUBLICKEYNOS  "v=DKIM1; k=rsa; t=y; p=" \
00113        "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4GUGr+d/6SFNzVLYpphnRd0QP" \
00114        "GKz2uWnV65RAxa1Pw352BqizqiKOBjgYGzj8pJQSs8tOvv/2k6jpI809RnESqOFg" \
00115        "F0gu3UJbNnu3+cd8k/kiQj+q4cKKRpAT92ccxc7svhCNgN1sBGmROYZuysG3Vu3D" \
00116        "yc079gSLtnSrgXb+gQIDAQAB"
00117 #define       PUBLICKEY2    "v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQ" \
00118        "KBgQDwIRP/UC3SBsEmGqZ9ZJW3/DkMoGeLnQg1fWn7/zYt" \
00119        "IxN2SnFCjxOCKG9v3b4jYfcTNh5ijSsq631uBItLa7od+v" \
00120        "/RtdC2UzJ1lWT947qR+Rcac2gbto/NMqJ0fzfVjH4OuKhi" \
00121        "tdY9tf6mcwGjaNBcWToIMmPSPDdQPNUYckcQ2QIDAQAB"
00122 #define       PUBLICKEYBADV "v=DKIM0; k=rsa; t=y:s; h=sha1:sha256; p=" \
00123        "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4GUGr+d/6SFNzVLYpphnRd0QP" \
00124        "GKz2uWnV65RAxa1Pw352BqizqiKOBjgYGzj8pJQSs8tOvv/2k6jpI809RnESqOFg" \
00125        "F0gu3UJbNnu3+cd8k/kiQj+q4cKKRpAT92ccxc7svhCNgN1sBGmROYZuysG3Vu3D" \
00126        "yc079gSLtnSrgXb+gQIDAQAB"
00127 #define       PUBLICKEY256  "v=DKIM1; k=rsa; t=y:s; h=sha256; p=" \
00128        "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4GUGr+d/6SFNzVLYpphnRd0QP" \
00129        "GKz2uWnV65RAxa1Pw352BqizqiKOBjgYGzj8pJQSs8tOvv/2k6jpI809RnESqOFg" \
00130        "F0gu3UJbNnu3+cd8k/kiQj+q4cKKRpAT92ccxc7svhCNgN1sBGmROYZuysG3Vu3D" \
00131        "yc079gSLtnSrgXb+gQIDAQAB"
00132 #define       PUBLICKEYBADH "v=DKIM1; k=rsa; t=y:s; h=sha0; p=" \
00133        "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4GUGr+d/6SFNzVLYpphnRd0QP" \
00134        "GKz2uWnV65RAxa1Pw352BqizqiKOBjgYGzj8pJQSs8tOvv/2k6jpI809RnESqOFg" \
00135        "F0gu3UJbNnu3+cd8k/kiQj+q4cKKRpAT92ccxc7svhCNgN1sBGmROYZuysG3Vu3D" \
00136        "yc079gSLtnSrgXb+gQIDAQAB"
00137 #define       PUBLICKEYNOK  "v=DKIM1; t=y:s; p=" \
00138        "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4GUGr+d/6SFNzVLYpphnRd0QP" \
00139        "GKz2uWnV65RAxa1Pw352BqizqiKOBjgYGzj8pJQSs8tOvv/2k6jpI809RnESqOFg" \
00140        "F0gu3UJbNnu3+cd8k/kiQj+q4cKKRpAT92ccxc7svhCNgN1sBGmROYZuysG3Vu3D" \
00141        "yc079gSLtnSrgXb+gQIDAQAB"
00142 #define       PUBLICKEYBADK "v=DKIM1; k=xxx; t=y:s; h=sha1:sha256; p=" \
00143        "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4GUGr+d/6SFNzVLYpphnRd0QP" \
00144        "GKz2uWnV65RAxa1Pw352BqizqiKOBjgYGzj8pJQSs8tOvv/2k6jpI809RnESqOFg" \
00145        "F0gu3UJbNnu3+cd8k/kiQj+q4cKKRpAT92ccxc7svhCNgN1sBGmROYZuysG3Vu3D" \
00146        "yc079gSLtnSrgXb+gQIDAQAB"
00147 #define       PUBLICKEYEMPTYP      "v=DKIM1; k=rsa; t=y:s; h=sha1:sha256; p="
00148 #define       PUBLICKEYNOP  "v=DKIM1; k=rsa; t=y:s; h=sha1:sha256"
00149 #define       PUBLICKEYCORRUPTP    "v=DKIM1; k=rsa; t=y:s; h=sha1:sha256; p=" \
00150        "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4GUGr+d/6SFNzVLYpphnRd0QP" \
00151        "GKz2uWnV65RAxa1Pw352BqizqiKOBjgYGzj8pJQSs8tOvv/2k6jpI809RnESqOFg" \
00152        "F0gu3UJbNnu3+cd8k/kiQj+q4cKKRpAT92ccxc7svhCNgN1sBGmROYZuysG3Vu3D" \
00153        "yc079gSLtnSrgXb+gQIDAQ"
00154 #define       REPORTRECORD  "ra=postmaster; rs=" SMTPTOKENENC
00155 
00156 #define       GIBBERISH     "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789 !@#$%^&*()_+|-={}[];':,./<>?`~\r\n"