In Canada its within 2 years for 12 (or 13?) year olds (I.e. a 10/11 year old can consent with a 12/13 year old) and within 5 years for 14/15 year olds. Though I'm not sure if that covers self distribution of cp (e.g. if a 14 year old sends some nudes to another 14 year old)