CryptoPassphrase  Check-in [020bc36b4a]

Overview
Comment:Adjust to ObjFW changes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 020bc36b4af8074862e2362743fa479d4741bb8b077f7687fdd8bd00e1d56ef4
User & Date: js on 2020-09-09 02:06:50
Other Links: manifest | tags
Context
2021-03-14
00:05
iOS: Restore the bundle identifier check-in: 5d6baa0a57 user: js tags: trunk
2020-09-09
02:06
Adjust to ObjFW changes check-in: 020bc36b4a user: js tags: trunk
2020-06-24
22:53
Update homepage and copyright check-in: 3c3453a863 user: js tags: trunk
Changes

Modified CryptoPassphrase.m from [ab16e0556c] to [0ec1617ee8].

118
119
120
121
122
123
124






125
126
127
128
129
130
131
132
	    : [NewPasswordGenerator generator]);
	generator.site = optionsParser.remainingArguments.firstObject;

	if (lengthString != nil) {
		bool invalid = false;

		@try {






			generator.length = (size_t)lengthString.decimalValue;
		} @catch (OFInvalidFormatException *e) {
			invalid = true;
		} @catch (OFOutOfRangeException *e) {
			invalid = true;
		}

		if (invalid) {







>
>
>
>
>
>
|







118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
	    : [NewPasswordGenerator generator]);
	generator.site = optionsParser.remainingArguments.firstObject;

	if (lengthString != nil) {
		bool invalid = false;

		@try {
			unsigned long long length =
			    lengthString.unsignedLongLongValue;

			if (length > SIZE_MAX)
				@throw [OFOutOfRangeException exception];

			generator.length = (size_t)length;
		} @catch (OFInvalidFormatException *e) {
			invalid = true;
		} @catch (OFOutOfRangeException *e) {
			invalid = true;
		}

		if (invalid) {