
# Copyright (C) 1997 Farrell McKay
# All rights reserved.
#
# This file is part of the Fortify distribution, a toolkit for
# upgrading the cryptographic strength of the Netscape Navigator
# web browser, authored by Farrell McKay.
#
# This toolkit is provided to the recipient under the
# following terms and conditions:-
#   1.  This copyright notice must not be removed or modified.
#   2.  This toolkit may not be reproduced or included in any commercial
#       media distribution, or commercial publication (for example CD-ROM,
#       disk, book, magazine, journal) without first obtaining the author's
#       permission.
#   3.  Subject to the above conditions being observed (1,2), this toolkit
#       may be freely reproduced or redistributed.
#   4.  This software is provided "as-is", without express or implied
#       warranty.  In no event shall the author be liable for any direct,
#       indirect or consequential damages however caused.
#   5.  Subject to the above conditions being observed (1-4),
#       this toolkit may be used at no cost to the recipient.
#
# Farrell McKay			Farrell.McKay@mpx.com.au

init {
	grammar		1.1
	target		"gold-v301-export.mips-sgi-irix5.2"
	text_offset	0x400000
	data_offset	0xfbe0000
	rodata_offset	0xfbe0000
}
_main {
	segment		text
	msg		"main"
	base		0x4dfbbc
	offset		0x0
	context		0x3c 0x1c 0x0f 0xd4
			0x27 0x9c 0x90 0x34
			0x03 0x99 0xe0 0x21
			0x27 0xbd 0xe9 0x20
			0xaf 0xbf 0x00 0x4c
}
p0a {
	segment		text
	msg		"Changing domestic/export function"
	base		0x7b38ac
	offset		0x4
	old_value	0x00 0x00 0x10 0x25
	new_value	0x24 0x02 0x00 0x01
}
p1a {
	segment		text
	msg		"Altering cipher specs function - v2 mask tests"
	base		0x7b38bc
	offset		0x24
	old_value	0x30 0x45 0x00 0x08
	new_value	0x30 0x45 0x00 0x01
}
p1c {
	segment		text
	msg		"Altering cipher specs function - v2 cipher const"
	base		0x7b38bc
	offset		0xd4
	old_value	0x24 0x08 0x00 0x04
	new_value	0x24 0x08 0x00 0x01
}
p2 {
	segment		text
	msg		"Altering cipher enable function - v2 cipher const"
	base		0x7b39f8
	offset		0x70
	old_value	0x34 0x01 0xff 0x04
	new_value	0x34 0x01 0xff 0x01
}
p3 {
	segment		text
	msg		"Altering cipher code test no. 1"
	base		0x7b3bd8
	offset		0x34
	old_value	0x24 0x01 0x00 0x04
	new_value	0x24 0x01 0x00 0x01
}
p4 {
	segment		text
	msg		"Changing cipher code test no. 2"
	base		0x7b4568
	offset		0x7c
	old_value	0x24 0x01 0x00 0x04
	new_value	0x24 0x01 0x00 0x01
}
p5 {
	segment		text
	msg		"Changing cipher code test no. 3"
	base		0x7b4568
	offset		0x1bc
	old_value	0x24 0x01 0x00 0x04
	new_value	0x24 0x01 0x00 0x01
}
p6 {
	segment		text
	msg		"Changing cipher code test no. 4"
	base		0x7b47e4
	offset		0x124
	old_value	0x24 0x01 0x00 0x02
			0x8c 0x62 0x00 0x38
			0x24 0x0d 0x00 0x01
			0x10 0x41 0x00 0x06
	new_value	0x24 0x41 0xff 0xfe
			0x8c 0x62 0x00 0x38
			0x24 0x0d 0x00 0x01
			0x18 0x20 0x00 0x06
}
p7a {
	segment		text
	msg		"Changing cipher characteristics, part 1"
	base		0x7b5254
	offset		0xe0
	old_value	0x24 0x01 0x00 0x04
	new_value	0x24 0x01 0x00 0x01
}
p7b {
	segment		text
	msg		"Changing cipher characteristics, part 2"
	base		0x7b5254
	offset		0x108
	old_value	0x25 0x4b 0xff 0xfb
			0xaf 0xab 0x00 0xbc
			0x03 0x20 0xf8 0x09
			0x24 0x05 0x00 0x08
			0x8f 0xbc 0x00 0x30
			0x27 0xac 0x00 0x54
			0x24 0x0d 0x00 0x08
	new_value	0x00 0x00 0x58 0x25
			0xaf 0xab 0x00 0xbc
			0x03 0x20 0xf8 0x09
			0x24 0x05 0x00 0x08
			0x8f 0xbc 0x00 0x30
			0x00 0x00 0x60 0x25
			0x00 0x00 0x68 0x25
}
security_code_12 {
	segment		data
	msg		"Changing security code value in .data"
	base		0x1001fbc4
	old_value	0x00 0x00 0x00 0x01
	new_value	0x00 0x00 0x00 0x02
}
v2_preferred {
	segment		data
	msg		"Changing hard-coded EXP-RC4-MD5 const"
	base		0x100a3160
	old_value	0x02 0x00 0x80 0x00
	new_value	0x01 0x00 0x80 0x00
}
v2_enabled {
	segment		data
	msg		"Changing v2 ciphers enabled bit mask"
	base		0x100a3190
	old_value	0x00 0x00 0x00 0x0a
			0x00 0x00 0x00 0x0a
	new_value	0x00 0x00 0x00 0x03
			0x00 0x00 0x00 0x03
}
v2_cipher_spec {
	segment		data
	msg		"Changing v2 cipher in v2+v3 cipher specs table"
	base		0x100a31c0
	offset		0x14
	old_value	0x00 0x00 0xff 0x04
			0x10 0x1f 0xca 0x0c
	new_value	0x00 0x00 0xff 0x01
			0x10 0x20 0x8d 0x4c
}
v3_cipher_spec {
	segment		data
	msg		"Changing v3 cipher in v2+v3 cipher specs table"
	base		0x100a31c0
	offset		0x3c
	old_value	0x00 0x00 0x00 0x06
			0x10 0x1f 0xca 0x2c
	new_value	0x00 0x00 0x00 0x04
			0x10 0x20 0x8e 0x44
}
v3_enabled {
	segment		data
	msg		"Changing v3 ciphers enabled table"
	base		0x100a4320
	old_value	0x00 0x03 0x00 0x06
			0x00 0x01 0x00 0x00
	new_value	0x00 0x04 0x00 0x03
			0x00 0x01 0x00 0x00
}
v2_cipher_descr {
	segment		data
	msg		"Changing v2 cipher description string number."
	base		0x100aa83c
	old_value	0xff 0xff 0xe2 0x46
	new_value	0xff 0xff 0xe2 0x41
}
v3_cipher_descr {
	segment		data
	msg		"Changing v3 cipher description string number."
	base		0x100aa850
	old_value	0xff 0xff 0xe2 0x4b
	new_value	0xff 0xff 0xe2 0x47
}
version_str {
	segment		rodata
	msg		"Altering the -v version string in .rodata"
	base		0x100c64c8
	offset		0x13
	old_value	"export,"
	new_value	"Fortify"
}
ssl2_cipher_name {
	segment		rodata
	msg		"Changing name of v2 entry in v2+v3 cipher specs table"
	base		0x10208d4c
	old_value	"RC2 encryptio"
	new_value	"ssl2_rc4_128\000"
}
ssl3_cipher_name {
	segment		rodata
	msg		"Changing name of v3 entry in v2+v3 cipher specs table"
	base		0x10208e44
	old_value	"RC2 encryption with a"
	new_value	"ssl3_rsa_rc4_128_md5\000"
}
